Problem writing some strings (UnicodeEncodeError)

Paulo da Silva p_s_d_a_s_i_l_v_a at netcabo.pt
Sun Jan 12 18:53:37 EST 2014


Em 12-01-2014 20:29, Peter Otten escreveu:
> Paulo da Silva wrote:
> 
>>> but I have not tried it myself. Also, some bytes may need to be escaped,
>>> either to be understood by the shell, or to address security concerns:
>>>
>>
>> Since I am puting the file names between "", the only char that needs to
>> be escaped is the " itself.
> 
> What about the escape char?
> 
Just this fn=fn.replace('"','\\"')

So far I didn't find any problem, but the script is still running.




More information about the Python-list mailing list