Printing Filenames with non-Ascii-Characters

vincent wehren vincent at visualtrans.de
Fri Feb 4 01:11:09 EST 2005


Marian Aldenhövel wrote:
> Hi,
> 
>  > Python's drive towards uncompromising explicitness pays off
> 
>> big time when you're dealing with multilingual data.
> 
> 
> Except for the very implicit choice of 'ascii' as an encoding when
> it cannot make a good guess of course :-).

Since 'ascii' is a legal subset Unicode and of most prevailing 
encodings, this is the only sensible thing to do. It is outside of the 
ascii range where characters become ambigious and need additional 
interpretation. Where other languages might ignore the problem at hand 
and send garbled data or replace characters to the output, Python at 
least let's you respond to conversion problems/errors.

> 
> All in all I agree, however.

That's good to hear ;)

--
Vincent Wehren



> 
> Ciao, MM



More information about the Python-list mailing list