-
Notifications
You must be signed in to change notification settings - Fork 5
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
Script gives error "UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c'" #5
Comments
Can you provide more issues or make a PR with that change? |
Hi, I'm having the same issue. I managed to manually import the issues generated with curl after printing the xml_string variable from Tty/YouTrack.py But directly from the script it keeps returning "<Response [400]>". Trying to solve this because it is a preety neat script. |
I'm having the response:
From youtrack through the api but can't find what is wrong since I can use the same output on curl and works fine, lol |
I might have solved it. Tested with other boards that where working and tweeking I found that latin characteres like: á , ê ... where returning the error, changed from xml_string.decode('utf-8') to xml_string.encode('utf-8') and it seems to have solved it. Gonna test everything, clean my code and submit a PR ASAP. |
@aamnakhan check this out |
Fixed using top answer here - http://stackoverflow.com/questions/31137552/unicodeencodeerror-ascii-codec-cant-encode-character-at-special-name
But the cards still haven't been imported even though the script ran successfully.
![screen shot 2017-02-22 at 1 41 37 pm](https://cloud.githubusercontent.com/assets/7508121/23202594/a97de9c2-f904-11e6-9b6d-ef4279e2a5ff.png)
The text was updated successfully, but these errors were encountered: