Skip to content

Instantly share code, notes, and snippets.

@ety001
Created February 16, 2015 06:09
Show Gist options
  • Select an option

  • Save ety001/f40c354cb9667713af48 to your computer and use it in GitHub Desktop.

Select an option

Save ety001/f40c354cb9667713af48 to your computer and use it in GitHub Desktop.
# coding=utf-8
ceil_data = u'否'
row_data_list = []
row_data_list.append( "'" + str(ceil_data) + "'" )
@ety001
Copy link
Copy Markdown
Author

ety001 commented Feb 16, 2015

报错:

Traceback (most recent call last):
  File "test.py", line 4, in <module>
    row_data_list.append( "'" + str(ceil_data) + "'" )
UnicodeEncodeError: 'ascii' codec can't encode character u'\u5426' in position 0
: ordinal not in range(128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment