scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
835 stars 96 forks source link

'utf8' codec can't decode byte 0xae in position 4: invalid start byte #121

Closed cassandragrace closed 10 years ago

cassandragrace commented 10 years ago

While adding a ROM file named "LEGO® Pirates of the Caribbean.iso":

[11/27/13 22:47:01] 'utf8' codec can't decode byte 0xae in position 4: invalid start byte Traceback (most recent call last): File "", line 45, in File "", line 33, in main File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom_manager", line 91, in sync_roms File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom_manager", line 78, in remove_deleted_roms_from_steam File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom", line 53, in to_shortcut File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\ice.rom", line 40, in name File "c:\Users\Scott.Scott-PC\Development\Projects\Ice\build\ice\out00-PYZ.pyz\encodings.utf_8", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode byte 0xae in position 4: invalid start byte

cassandragrace commented 10 years ago

Removing the ® works as a work-around and found this image: http://consolegrid.com/games/7123

[11/27/13 22:47:01] #################################### [11/27/13 22:51:45] =========================Starting Ice [11/27/13 22:51:45] Detected Emulator: higan [11/27/13 22:51:45] Detected Emulator: Dolphin [11/27/13 22:51:45] Detected Emulator: VisualBoyAdvance [11/27/13 22:51:45] Detected Emulator: Nestopia [11/27/13 22:51:45] Detected Emulator: ZSNES [11/27/13 22:51:45] Emulator '' not found for Nintendo DS. Ignoring [11/27/13 22:51:45] Emulator '' not found for Playstation 2. Ignoring [11/27/13 22:51:45] Emulator '' not found for Playstation 1. Ignoring [11/27/13 22:51:45] Emulator '' not found for Sega Dreamcast. Ignoring [11/27/13 22:51:45] Emulator '' not found for Sega Genesis. Ignoring [11/27/13 22:51:45] Emulator '' not found for Nintendo 64. Ignoring [11/27/13 22:51:45] Emulator '' not found for Nintendo Gameboy. Ignoring [11/27/13 22:51:45] Detected Console: Super Nintendo => ZSNES [11/27/13 22:51:45] Detected Console: Nintendo Entertainment System => Nestopia [11/27/13 22:51:45] Detected Console: Gameboy Advance => VisualBoyAdvance [11/27/13 22:51:45] Detected Console: Nintendo Gamecube => Dolphin [11/27/13 22:51:45] Detected Console: Nintendo Wii => Dolphin [11/27/13 22:51:45] ---------------Running for user 47072217 [11/27/13 22:51:45] Adding LEGO Pirates of the Caribbean [11/27/13 22:51:45] ---Downloading grid images [11/27/13 22:51:45] Setting custom image for LEGO Pirates of the Caribbean [11/27/13 22:51:46] =========================Finished

marcusmoller commented 10 years ago

I assume you're running Ice from the binary that @scottrice has provided.

@scottrice when did you last update the binaries?

scottrice commented 10 years ago

There should be a version.txt inside the most recent binaries that includes the git hash and the build date.

@salithus did your version of ice come with version.txt? If so, what does it contain?

marcusmoller commented 10 years ago

I haven't tried with symbols such as © ® etc., so perhaps that just didn't get fixed on my commit a few weeks back. I'll look into it ASAP.

scottrice commented 10 years ago

I imagine fixing this will require me to convert all of the strings used in Ice to Unicode strings. Honestly, it's something I should have done from the beginning.

Now that I think about it, I wonder how this will work with SteamShortcutManager and generating shortcuts.vdf. I will have to look into this...