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

Encoding problem with --text extract #12

Closed
Symryvvin opened this issue Aug 22, 2016 · 2 comments
Closed

Encoding problem with --text extract #12

Symryvvin opened this issue Aug 22, 2016 · 2 comments
Assignees

Comments

@Symryvvin
Copy link

Symryvvin commented Aug 22, 2016

D:\XML>python D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract
--text "C:\Program Files\Hearthstone\Data\Win\cardxml0.unity3d"
Traceback (most recent call last):
File "D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract", line
146, in
main()
File "D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract", line
143, in main
exit(app.run())
File "D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract", line
56, in run
self.handle_asset(asset)
File "D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract", line
118, in handle_asset
self.write_to_file(filename, d.script, mode=mode)
File "D:\unityUnpack\UnityPack-master\UnityPack-master\bin\unityextract", line
76, in write_to_file
written = f.write(contents)
File "C:\Python35\lib\encodings\cp1251.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xed' in position 15
59: character maps to

@Symryvvin Symryvvin changed the title Encoding problem Encoding problem with --text extract Aug 22, 2016
@jleclanche
Copy link
Member

I don't know why windows is using cp1251 encoding here. Default is supposed to be utf-8.

@ghost
Copy link

ghost commented Aug 26, 2016

This is Russian version of Windows, Windows is a strange thing..

@jleclanche jleclanche self-assigned this Oct 3, 2016
@jleclanche jleclanche reopened this Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants