Skip to content

Error returned when executing script: "UnicodeDecodeError" #13

@tmpduarte

Description

@tmpduarte

When executing the script I get the following in the command line:
Traceback (most recent call last):
File "./scripts/build/objc_strings.py", line 207, in
main()
File "./scripts/build/objc_strings.py", line 204, in main
show_untranslated_keys_in_project(project_path)
File "./scripts/build/objc_strings.py", line 175, in show_untranslated_keys_in_project
keys_set_in_strings = keys_set_in_strings_file_at_path(p)
File "./scripts/build/objc_strings.py", line 97, in keys_set_in_strings_file_at_path
for s in f:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 684, in next
return self.reader.next()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 615, in next
line = self.readline()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 530, in readline
data = self.read(readsize, firstline=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 477, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xdf in position 8: invalid continuation byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions