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

Unrecognized character #4

Open
maito78 opened this issue Jan 1, 2019 · 0 comments
Open

Unrecognized character #4

maito78 opened this issue Jan 1, 2019 · 0 comments

Comments

@maito78
Copy link

maito78 commented Jan 1, 2019

Hi and thanks for the tool!
I have one problem when there are unrecognized characters in the text. The code rises an exception and then stop.

Traceback (most recent call last):
File "enex2org.py", line 179, in
run(args.input, args.output_dir, args.separate or [])
File "enex2org.py", line 165, in run
note.write(outfile, outpath)
File "enex2org.py", line 94, in write
outfile.write(enml.note2org(self))
File "C:\Users\ode\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2192' in position 384: character maps to

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