[Python-3000] PEP 3138- String representation in Python 3000
Atsuo Ishimoto
ishimoto at gembook.org
Sat May 24 04:04:48 CEST 2008
On Sat, May 24, 2008 at 5:42 AM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> 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.
>
Yes. My question is "Which do you feel comfortable, printing collect
glyphs or hex-escaped ASCII ?". I prefer printed glyphs for foreign
characters, but I had feeling that western people prefer hex-escaped
ASCII in general. But from responses I saw, perhaps this is not big
deal.
More information about the Python-3000
mailing list