Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Date: Tue, 14 Feb 2006 11:49:49 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- References: <43EFF8C4.4050704@example.com><87d5hrix3v.fsf@example.com><43F0D507.7020303@example.com>
- Organization: The XEmacs Project
- User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b23 (daikon, linux)
>>>>> "gabor" == gabor <gabor@example.com> writes: gabor> in python byte-strings are objects and unicode-strings are gabor> objects too. you create a byte string for example like gabor> this: gabor> string1 = "byte string" Unfortunately, "これは日本語です。" will produce a string which is encoded Japanese (with whatever encoding the file is saved in), but gabor> string2 = u"byte string" u"これは日本語です。" does not produce Unicode-encoded Japanese. It may work with PEP 263 coding cookies, but this is unreliable in the Japanese environment (because of the multiplicity of incompatible encodings). In fact, that only works as expected for Latin-1 IIRC (it may not work for Latin-1 either). That's why I chose the example phrase I did. I argued strenuously for an XML-like "default to UTF-8" policy with optional codecs for loading Python code, but Guido refused on the basis of backward compatibility (ie, lots of Europeans were using 8 bit encodings in existing production code). -- School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.
- Follow-Ups:
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: =?UTF-8?B?R8OhYm9yIEZhcmthcw==?=
- References:
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: David Riggs
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: Stephen J. Turnbull
- Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- From: gabor
Home | Main Index | Thread Index
- Prev by Date: [tlug] KuroBox and Xterm problem SOLVED (but problems with shutdown)
- Next by Date: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Previous by thread: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Next by thread: Re: [tlug] unicode and Perl- how to pass command line unicodearguments
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links