-
Notifications
You must be signed in to change notification settings - Fork 280
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
UnicodeDecode Error on OSX 10.9.4 with python 2.7.5 #27
Comments
came across the same error |
Got same error. Could not install pyobjc so had to install biplist and plist separately, not sure if related. |
There is a PR := #16 I made those changes and not getting endcodedecode error anymore, but I am getting some other error. So yeah, I will keep looking for the changes and see if it works. |
I got it on a different line, OSX 10.7.5: Traceback (most recent call last):
File "osxauditor.py", line 1702, in <module>
Main()
File "osxauditor.py", line 1651, in Main
ParseStartup()
File "osxauditor.py", line 553, in ParseStartup
PrintAndLog(CustomListItem["Name"].decode("utf-8") + u" - " + binascii.hexlify(CustomListItem["Alias"]).decode("hex").decode("utf-8", "ignore"), "INFO")
File "osxauditor.py", line 224, in PrintAndLog
print(u"[INFO] " + LogStr)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0408' in position 52: ordinal not in range(128) |
Same here:
|
Got the same error. Bit of a hack, but here's what I did to get around it:
|
I also received it on
But only when redirecting output to a file. I fixed it by running like this:
See https://stackoverflow.com/questions/4545661/unicodedecodeerror-when-redirecting-to-file for reference. |
"Sometimes" the strings are encoded using UTF-16. |
I ran the osxauditor and got following error:
I am also trying to figure out and fix it, but thought to log it so that you are aware of this.
The text was updated successfully, but these errors were encountered: