Removing Unicode from Python?
Alex Martelli
aleax at aleax.it
Fri Oct 31 05:42:15 EST 2003
Brian Quinlan wrote:
>> All MS products use unicode strings. All the time. Its integral to
>> the OS and all its libraries.
>
> This statement is obviously false.
It's slightly exaggerated, yes. But it's basically true of COM
and dotNET (just as it is of Java).
>> VB and other MS offspring allow you to ignore that fact, but they
>> don't make it go away.
>>
>> Python is just doing what it should do: handle unicode strings as
> unicode
>> strings.
>
> But the SQL Server "text" type is not a Unicode type.
When you access SQL Server via a COM interface, you'll get BSTR's
(which are COM's most normal "strings", and VB's) -- i.e., Unicode.
Alex
More information about the Python-list
mailing list