Repository navigation
Import issue error with Unicode characters in title #17
Description
Activity
Comment by IQAndreas
Sunday Nov 10, 2013 at 20:21 GMT
Looks like some of Python's functions don't like Unicode characters that much (which is something I really should have tested, being Swedish myself).
Sorry for the delay, I will get on this ASAP!
Comment by IQAndreas
Sunday Nov 10, 2013 at 20:54 GMT
I have been testing around, and it seems to handle unicode characters (and even unescaped backslashes) seem to import just fine on my system (Ubuntu 13.10), so I worry it may be an "operating-system specific" problem.
What operating system are you using, and do you have a link to the issue you tried to import?
Comment by provegard
Sunday Nov 17, 2013 at 13:33 GMT
I'm using Windows. The issue is in a private repo, but I will try to replicate the issue with two public repos.
Comment by IQAndreas
Thursday Nov 21, 2013 at 09:49 GMT
The issue is in a private repo, but I will try to replicate the issue with two public repos.
You are welcome to use the following issue:
And then write to the following repo:
With the following command:
$ python3 gh-issues-import.py --source IQAndreas/github-issues-import --target IQAndreas-testprojects/github-issues-import-example --issues 19 --no-configI haven't tested, but I don't believe you need write-permissions on the target repo in order to open issues there (even with an automated script).
Comment by IQAndreas
Sunday Apr 27, 2014 at 00:36 GMT
I am closing this issue for now since it seems to be resolved, but if you are still having problems with it, please leave a comment, and I will re-open this issue.
Comment by vincenttran18
Wednesday Aug 13, 2014 at 18:00 GMT
I'm still having the same issue importing issues between two private repos. The repo being imported into is a fork from the repo being imported from. The issues being imported occasionally contain CJK characters.
Are you sure you wish to continue? [Y/n] Y Traceback (most recent call last): File "C:\github-issues-import-master\gh-issues-import.py", line 445, in <module> import_issues(issues) File "C:\github-issues-import-master\gh-issues-import.py", line 407, in import_issues print("Successfully created issue '%s'" % result_issue['title']) File "C:\Python34\lib\encodings\cp437.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u201c' in position 87: character maps to <undefined>
Friday Nov 01, 2013 at 13:25 GMT
Originally opened as IQAndreas/github-issues-import#17
I had an issue with a typographic quote in the title, got: