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

UnicodeDecodeError #2

Open
TouChla opened this issue May 14, 2023 · 0 comments
Open

UnicodeDecodeError #2

TouChla opened this issue May 14, 2023 · 0 comments

Comments

@TouChla
Copy link

TouChla commented May 14, 2023

Hello i would really like to use this nice program but i get this error with all epubs. As well with the epub that you used as an example:

PS C:\Users\chlad\Desktop\interlinearize-main\interlinearize-main> python interlinearize.py fr en "Candide - Voltaire.epub" "Candide - Voltaire (interlinearized).epub"
Traceback (most recent call last):
File "C:\Users\chlad\Desktop\interlinearize-main\interlinearize-main\interlinearize.py", line 533, in
config = get_config()
^^^^^^^^^^^^
File "C:\Users\chlad\Desktop\interlinearize-main\interlinearize-main\interlinearize.py", line 124, in get_config
config.read(str(config_path))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\configparser.py", line 713, in read
self._read(fp, filename)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\configparser.py", line 1036, in _read
for lineno, line in enumerate(fp, start=1):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 209: character maps to

What to do?

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