[Python-modules-team] Bug#541198: Bug#541198: python-mysqldb: utf8_bin collation will not convert to Unicode strings

Jonas Meurer jonas at freesources.org
Thu Aug 13 21:01:47 UTC 2009


hey,

On 12/08/2009 Christoph Burgmer wrote:
> A string type column with a utf8_bin collation will not be converted to a
> Python Unicode string, but instead will be returned as a utf8 (byte) string.
> 
> The MySQL documentation though clearly states: "A nonbinary string has a
> character set and is converted to another character set in many cases, even
> when the string has a _bin collation"[1].
> 
> I understand that a string with utf8_bin collation is still a string and
> thus should not be dealt with differently. The utf8_bin collation is
> essential when working with Unicode without wanting the Unicode collation
> algorithm to kick in.

thanks for the bugreport. i forwarded it to the upstream bug tracking
system at sourceforge:
http://sourceforge.net/tracker/?func=detail&aid=2837134&group_id=22307&atid=374932

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20090813/4bba98dc/attachment.pgp>


More information about the Python-modules-team mailing list