Problem with ^A in Filename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)
>>> @Ripley^As_unglaubliche_Welt
>>>
>>> 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.
>>
>> Klaus
> 
> 
> 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.
> 
> Patrick

You could convert the 0x01 to a single quote when going to XML.

Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux