News for hackers. Stuff that matters.
Re:UTF-8 good, UTF-16 bad by natmaster on Tuesday February 08, 2011 @03:19AM (#2192366)
Can someone link me to where python uses UTF-16? It was my understanding it defaulted to UTF-8.

http://www.python.org/dev/peps/pep-3120/

Re:UTF-8 good, UTF-16 bad by lysium on Tuesday February 08, 2011 @03:24AM (#2192377)
That PEP only refers to the encoding of the source (code) file, not to the encoding on how strings are stored in Python.

Edit: Your question might be answered at SO: http://stackoverflow.com/questions/1838170/what-is-internal-...

Re:UTF-8 good, UTF-16 bad by masklinn on Tuesday February 08, 2011 @03:43AM (#2192409)
> It was my understanding it defaulted to UTF-8.

For external IO, internally it's in UTF-16 (actually UCS-2, mostly unaware of surrogates) or in UCS-4 (via a compile-time switch).

See http://docs.python.org/c-api/unicode.html#Py_UNICODE for the Py_UNICODE API.

Re:UTF-8 good, UTF-16 bad by fedd on Tuesday February 08, 2011 @03:24AM (#2192378)
sorry for the quastion as the reply, i would also ask for some info about the unicode issues in jython, as i lack experience with all python stuff. does it have problems or everything is transparent?
Re:UTF-8 good, UTF-16 bad by fnl on Tuesday February 08, 2011 @10:00AM (#2193030)
check PEP-261