[Python-3000] PEP 3138- String representation in Python 3000

Stephen J. Turnbull stephen at xemacs.org
Fri May 23 22:42:54 CEST 2008


Atsuo Ishimoto writes:
 > 2008/5/23 Guido van Rossum <guido at python.org>:
 > > Personally, I can live with it. I rarely generate Japanese text so I
 > > doubt it'll be a problem. I can also change the console encoding and
 > > error handler.
 > 
 > While you rarely generate Japanese text, but I guess you often get
 > non-ASCII text data e.g. SPAM mail in Japanese, Rietveld comments in
 > Spanish, etc. Forecasting encoding of data is hard in these days.

I don't see the problem.  You don't have to forecast the encoding of
data.  Strings are Unicode in Python internal format.  The question is
whether the device receiving the output of repr can handle all of the
characters that will be generated.


More information about the Python-3000 mailing list