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

"'utf-8' codec can't decode byte 0x99 in position 29: invalid start byte" when trademark symbol is in the name of the game #30

Open
Pretzelek opened this issue Nov 9, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Pretzelek
Copy link

Pretzelek commented Nov 9, 2021

pynps -G -zip -c psp -r eur "Extreme Pinball"

[DOWNLOAD] Extreme Pinball (EU) [NPEF00068] for PSP
3sE4F8Tg3kOFfsobRrF1VMUf7hAfYDeDX62mguUM5WEb83auLcpwXcEQQNWP4Jrjfu52tydMworI7oW 100%
[CHECKSUM] No checksum provided by NPS, skipping check
[PKG2ZIP] Attempting to extract [NPEF00068]Extreme Pinball
[] loading...
[
] unpacking PSX
Traceback (most recent call last):
File "d:\python3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\python3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\Python3\Scripts\pynps.exe_main
.py", line 9, in
File "d:\python3\lib\site-packages\pynps\cli\cli.py", line 667, in cli_main
delete = run_pkg2zip(dl_dile_loc, dl_location, PKG2ZIP, pkg2zip_args, extraction_folder, i)
File "d:\python3\lib\site-packages\pynps\functions\functions.py", line 694, in run_pkg2zip
process = runner(run_lst, cwd=output_location)
File "d:\python3\lib\site-packages\pynps\functions\functions.py", line 643, in runner
out = line.rstrip().decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 29: invalid start byte

Replacing out = line.rstrip().decode() with out = line.rstrip().decode('cp1252') in functions.py appears to correct this (though it breaks Japanese title downloading).

@evertonstz evertonstz added the bug Something isn't working label Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants