[vdr] Problem with ^A in Filename
Klaus.Schmidinger at cadsoft.de
Mon Apr 3 11:26:34 CEST 2006
Patrick Fischer wrote:
> Klaus Schmidinger wrote:
>> Patrick Fischer wrote:
>>> I have some problems with the filename. I want to transmit all the
>>> filenames by xml.
>>> But I have some problems with a special charvalue.
>>> For Example:
>>> @Ripley's unglaubliche Welt
>>> will be saved as (only shown if I pipe "ll . > out.txt" and look at
>>> the file or by using xterm)
>>> This is a problem because ^A is an alias for 0x01 which I can't
>>> return in xml.
>>> My current version is 1.3.38. Maybe there has somethink changed.
>> The single quote character is mapped to 0x01 so that in shell script
>> it is guaranteed that no recording name contains such a character, and
>> you can always be sure that enclosing a recording name in single quotes
>> will work.
> Wouldn't it be easier if the filename contains NO "critical" chars and
> you put the displayed recordingname into the info.vdr file?
> For me it is now impossible to transmit the correct filename over xml.
> xml don't allow 0x01 and I can't return the value.
You could convert the 0x01 to a single quote when going to XML.
More information about the vdr