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

print should plan on UTF-8 by default #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

print should plan on UTF-8 by default #51

wants to merge 1 commit into from

Conversation

grogsaxle
Copy link

Had this error:

[INFO] notbob's LoginItems
[INFO] /Users/notbob/Library/Preferences/com.apple.loginitems.plist
Traceback (most recent call last):
  File "osxauditor.py", line 1700, in <module>
    Main()
  File "osxauditor.py", line 1655, in Main
    ParseStartup()
  File "osxauditor.py", line 534, in ParseStartup
    PrintAndLog(CustomListItem['Name'].decode('utf-8') + u' - ' + binascii.hexlify(CustomListItem['Alias']).decode('hex').decode('utf-8', 'ignore'), 'INFO')
  File "osxauditor.py", line 230, in PrintAndLog
    print(u'[INFO] ' + LogStr)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0438' in position 51: ordinal not in range(128)

Would probably rework to not use print, but this is at least handles getting past the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant