jssimporter / JSSImporter

JSSImporter is deprecated. Please see the wiki for alternatives
Apache License 2.0
145 stars 38 forks source link

JSSImporter fails with umlauts in self_service_description #61

Closed systemheld closed 8 years ago

systemheld commented 9 years ago

Hello Shea,

We have some problems when using umlauts in the Self Service Description. At the moment we work around with converting to their alternative notation (such as ö -> oe), but thats a bit ugly. I did some research but can't find the place where the ascii conversion is done. In your JSSImporter you are encoding all strings to utf-8 - as long as I can see that - so the problem must resist in some library.

If I run a debug run, there isn't much helpful output to locate the ascii conversion:

'self_service_description': Der kostenlose Instant-Messenger verbindet sich mit allen g\xe4ngigen Chatprotokollen \u2013 von MSN Messenger \xfcber Yahoo Messenger bis hin zu AOL, ICQ und Twitter.'
[...]
JSSImporter: Found file: /Users/me/Library/AutoPkg/RecipeRepos/de.fau.rrze.gitlab.faumac.autopkg/Adium/../InstallPolicyTemplate.xml
'ascii' codec can't encode character u'\xe4' in position 729: ordinal not in range(128)

Any Ideas?

sheagcraig commented 9 years ago

It looks like the description string below has a combination of unicode (\u2013) and encoded ascii (\xe4). This is probably due to my poor handling of Unicode!

sheagcraig commented 8 years ago

Pending python-jss update.