Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to save utf-8 characters #1

Closed
chfw opened this issue Apr 27, 2016 · 0 comments
Closed

failed to save utf-8 characters #1

chfw opened this issue Apr 27, 2016 · 0 comments

Comments

@chfw
Copy link
Member

chfw commented Apr 27, 2016

Traceback (most recent call last):
File "/usr/bin/moban", line 9, in
load_entry_point('moban==0.0.1', 'console_scripts', 'moban')()
File "/usr/lib/python2.7/site-packages/moban/main.py", line 38, in main
handle_command_line(options)
File "/usr/lib/python2.7/site-packages/moban/main.py", line 114, in handle_command_line
options[constants.LABEL_OUTPUT]
File "/usr/lib/python2.7/site-packages/moban/engine.py", line 35, in render_to_file
apply_template(template, data, output_file)
File "/usr/lib/python2.7/site-packages/moban/engine.py", line 77, in apply_template
output.write(rendered_content)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 43248: ordinal not in range(128)

@chfw chfw closed this as completed in c00fcfc Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant