brysontyrrell / PatchServer

A self-hosted implementation of an external patch source for Jamf Pro 10.2+
http://patchserver.readthedocs.io/en/latest/
MIT License
67 stars 13 forks source link

Unicode in Application Names #38

Open ecrist opened 3 years ago

ecrist commented 3 years ago

The script doesn't currently support unicode characters in the application names. Our first instance of this is Übersicht. We've tried munging it but it's very quickly a mess.

ecrist@mackerel322:~/Patch-Starter-Script-> python patchstarter.py -o . --patch-only /Applications/Übersicht.app
Traceback (most recent call last):
  File "patchstarter.py", line 263, in <module>
    main()
  File "patchstarter.py", line 100, in main
    filename = '{}-patch.json'.format(app_id)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0308' in position 1: ordinal not in range(128)
ecrist commented 3 years ago

👉🏻

Poke?