I get this error when a glyph name has a non ASCII character or the glyph lib has a key with string with a non ASCII character.
Normalizing "Untitled.ufo".
Traceback (most recent call last):
File "/usr/local/bin/ufonormalizer", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/ufonormalizer.py", line 84, in main
floatPrecision=floatPrecision, writeModTimes=writeModTimes)
File "/usr/local/lib/python2.7/site-packages/ufonormalizer.py", line 217, in normalizeUFO
layerReferencedImages = normalizeGlyphsDirectory(ufoPath, layerDirectory, onlyModified=onlyModified, writeModTimes=writeModTimes)
File "/usr/local/lib/python2.7/site-packages/ufonormalizer.py", line 320, in normalizeGlyphsDirectory
imageFileName = normalizeGLIF(ufoPath, layerDirectory, fileName)
File "/usr/local/lib/python2.7/site-packages/ufonormalizer.py", line 627, in normalizeGLIF
normalizedText = normalizeGLIFString(text, glifPath, imageFileRef)
File "/usr/local/lib/python2.7/site-packages/ufonormalizer.py", line 543, in normalizeGLIFString
tree = ET.fromstring(text)
File "<string>", line 124, in XML
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0634' in position 383: ordinal not in range(128)
I get this error when a glyph name has a non ASCII character or the glyph lib has a key with string with a non ASCII character.
The glyph contents for non ASCII string.
I also saved the file in UTF-8 encoding. Am I mistaken or this should be allowed in UFO according to the spec?