Menu

SELECT error for gb2312 data

Help
2004-01-06
2012-09-19
  • Bill Eldridge

    Bill Eldridge - 2004-01-06

    I've got gb2312 data stored in
    the "TITLE" column (the rest of the table is utf-8)
    I connect using utf-8, do:

    c.execute('SELECT title from table')

    and get:

    'utf8' codec can't decode byte 0xa8 in position 3: unexpected code byte

    I can do this from the mysql prompt though.
    I've tried using various CAST, CONVERT,
    different connection encodings for unicode=
    etc., but can't get the column data to show
    up. I got the data in via MySQLdb, so it'd
    be nice to get it out.

    Any ideas?

    THanks,
    Bill

     
    • Bill Eldridge

      Bill Eldridge - 2004-02-06

      Still doesn't work, but I can retrieve the
      data with a MySQL command prompt itself.
      Latin1 of course works :()

      Anyone have any suggestions?

      Bill

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.