Swedish characters in Python strings

Brian Quinlan brian at sweetapp.com
Sun Oct 13 17:13:38 EDT 2002


Urban wrote:
> I think Python should take care of that kind of conversions
> behind the scene...

How would Python do this?

> By the way, is there a method to test strings for how they are
> coded before messing with them in a program.

No. Given a sequence of bytes, it is pretty tough to accurately
determine the encoding. There are libraries that try, but they don't
always succeed.

Cheers,
Brian





More information about the Python-list mailing list