A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-May/003901.html below:

[I18n-sig] Re: [Python-Dev] Unicode debate

[I18n-sig] Re: [Python-Dev] Unicode debateGuido van Rossum guido@python.org
Tue, 02 May 2000 15:58:20 -0400
[me]
> > So what do you think of my new proposal of using ASCII as the default
> > "encoding"?  

[Paul]
> I can live with it. I am mildly uncomfortable with the idea that I could
> write a whole bunch of software that works great until some European
> inserts one of their name characters.

Better than that when some Japanese insert *their* name characters and
it produces gibberish instead.

> Nevertheless, being hard-assed is
> better than being permissive because we can loosen up later.

Exactly -- just as nobody should *count* on 10**10 raising
OverflowError, nobody (except maybe parts of the standard library :-)
should *count* on unicode("\347") raising ValueError.  I think that's
fine.

> What do we do about str( my_unicode_string )? Perhaps escape the Unicode
> characters with backslashed numbers?

Hm, good question.  Tcl displays unknown characters as \x or \u
escapes.  I think this may make more sense than raising an error.

But there must be a way to turn on Unicode-awareness on e.g. stdout
and then printing a Unicode object should not use str() (as it
currently does).

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4