String is ASCII or UTF-8?

C. Benson Manica cbmanica at gmail.com
Tue Mar 9 12:31:59 EST 2010


On Mar 9, 12:24 pm, "Richard Brodie" <R.Bro... at rl.ac.uk> wrote:
> "C. Benson Manica" <cbman... at gmail.com> wrote in messagenews:98375575-1071-46af-8ebc-f3c817b47e1d at q23g2000yqd.googlegroups.com...
>
> >The strings come from the same place, i.e. they're exclusively
> > normal ASCII characters.
>
> In this case then converting them to/from UTF-8 is a no-op, so
> it makes no difference at all.

Except to the database library, which seems perfectly happy to send an
8-character UTF-8 string to the database as 16 raw characters...



More information about the Python-list mailing list