Message 1 of 1
Sample script can't handle unicode character
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The sample/utility script Write user interface to a file API Sample fails on line 65 when attempting to write custom UI elements that contain unicode characters.
The script should be modified to save the info in unicode format, like so:
Add
import codecs
Replace line 65
f = open(filename, 'w')
with
f = codecs.open(filename, 'w', "utf-8-sig")
Done!