UnicodeDecodeError when building for Android

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
belorodz
Newbie
Posts: 2
Joined: Wed Aug 08, 2018 8:08 pm
Contact:

UnicodeDecodeError when building for Android

#1 Post by belorodz »

So I was testing how the whole android-building thing works and after several hours of fixing mistakes relating to my entire pc being in cyrillic, I finally got it. Ok. 270 mb, I use the "build and install" option. However, when I try to open it, I get an error that I don't get on my pc.
here is the full traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00images.rpy", line 54, in <module>
File "renpy/common/00images.rpy", line 38, in scan_images_directory
UnicodeDecodeError: 'utf8' codec can't decode byte 0x97 in position 22: invalid start byte

— Full Traceback —----------------------------------------------------------

Full traceback:
File "00images.rpyc", line 26, in script
File "/data/user/0/org.project.deliria/files/renpy/ast.py", line 827, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/data/user/0/org.project.deliria/files/renpy/python.py", line 1764, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00images.rpy", line 54, in <module>
File "renpy/common/00images.rpy", line 38, in scan_images_directory
UnicodeDecodeError: 'utf8' codec can't decode byte 0x97 in position 22: invalid start byte
Does anyone knows how to fix this?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: UnicodeDecodeError when building for Android

#2 Post by Imperf3kt »

U0097 suggests Latin supplement
Do you have any non-standard characters in the game name?
Specifically an a (that isn't an 'a')
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: UnicodeDecodeError when building for Android

#3 Post by Remix »

As the error states it has problems "in scan_images_directory" you might do best checking in your images folder for image names that are not utf-8.

I would presume that some cyrillic characters are utf-16, so perhaps look for those (or the rarer types of those) in image names and rename.
Frameworks & Scriptlets:

belorodz
Newbie
Posts: 2
Joined: Wed Aug 08, 2018 8:08 pm
Contact:

Re: UnicodeDecodeError when building for Android

#4 Post by belorodz »

Remix wrote: Thu Aug 09, 2018 4:26 am As the error states it has problems "in scan_images_directory" you might do best checking in your images folder for image names that are not utf-8.

I would presume that some cyrillic characters are utf-16, so perhaps look for those (or the rarer types of those) in image names and rename.
Thank you! It totally worked. I just renamed some files that I had doubts about.

Post Reply

Who is online

Users browsing this forum: No registered users