'ascii' codec can't encode character...ordinal not in range(128)
21 views
Skip to first unread message
chrisbr...@gmail.com
unread,
Jun 29, 2019, 12:08:30 AM6/29/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mnemosyne-proj-users
Hi,
Full error message:
'ascii' codec can't encode character '\xe8' in position 14: ordinal not in range(128)
Traceback (innermost last):
File "mnemosyne/pyqt_ui/qt_worker_thread.py", line 52, in run
File "mnemosyne/pyqt_ui/import_dlg.py", line 41, in do_work
File "mnemosyne/libmnemosyne/file_formats/tsv.py", line 89, in do_import
UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 14: ordinal not in range(128)
The file is tab-delimited in UTF-8 exported from LibreOffice Calc.
Per instructions, UTF-8, tab, deleted string delimeter (assumed this is what you meant by "clear"). Unchecked "Save cell content as shown." Would not detect, so renamed to .tsv and it was detected. (Would be helpful to update webpage instructions to this effect.)
The character it dislikes is 'è'.
It crashes on first accented character it detects.
I have tried .txt with the same data from LibreOffice in UTF-8. Same result.
Tried exporting to US-ASCII. That imported but all accented characters were rendered as '?'.
Running macOS 10.14.5
python -V
Python 2.7.10
Was really hoping to use this program. Rest of it looks great. Hope it could be fixed soon.
Thanks,
Chris
Peter Bienstman
unread,
Jun 29, 2019, 1:14:56 AM6/29/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mnemosyne-...@googlegroups.com, Devin Howard, Christopher Breakspear
Hi,
I looked at the file you sent me, but it imports fine under Windows...
So, this must be some OSX specific bug. I've put Devin, our Mac developer in CC.