1. Artem Gluvchynsky
  2. pyhs
  3. Issues
Issue #4 resolved

utf-8 chinese update always empty string

Anonymous created an issue

Hi, my code hs.update(DB_NAME, 'users', '=', ['id', 'name'], [user_id], [user_id, '小宝'])

it can work but utf-8 chinese update always empty string in mysql

Comments (4)

  1. Anonymous

    i change sockets.py ''' try: from _speedups import encode, decode except ImportError: from utils import encode, decode ''' from utils import encode, decode

    it can insert utf-8 chunese string, so from _speedups import encode, decode had some error

  2. Artem Gluvchynsky repo owner

    Thanks for your reports! There is a bug in C speedups extension when using Unicode characters. I'll release a fixed version in a day. For now you can disable this extension. However it will affect performance on big transfered data sets.

  3. Log in to comment