Hi, A while ago I had difficulties with non-ascii characters in strings in JS files.
Basically everytime I used the tg-admin i18n collect command, if I had a javascript file containing non-ascii characters, it would give me a unicode error. This was apparently supposed to be fixed here : http://trac.turbogears.org/changeset/6645. Now I've been trying to collect my strings using tg-admin collect --js- encoding utf-8 but I'm getting the following error : Traceback (most recent call last): File "/usr/bin/tg-admin", line 8, in <module> load_entry_point('TurboGears==1.1', 'console_scripts', 'tg-admin') () File "/usr/lib/python2.5/site-packages/TurboGears-1.1-py2.5.egg/ turbogears/command/base.py", line 416, in main command.run() File "/usr/lib/python2.5/site-packages/TurboGears-1.1-py2.5.egg/ turbogears/command/i18n.py", line 150, in run self.scan_source_files() File "/usr/lib/python2.5/site-packages/TurboGears-1.1-py2.5.egg/ turbogears/command/i18n.py", line 336, in scan_source_files self.scan_js_files(tmp_potfile, js_files) File "/usr/lib/python2.5/site-packages/TurboGears-1.1-py2.5.egg/ turbogears/command/i18n.py", line 481, in scan_js_files self._write_potfile_entries(potfile, messages) File "/usr/lib/python2.5/site-packages/TurboGears-1.1-py2.5.egg/ turbogears/command/i18n.py", line 489, in _write_potfile_entries text = catalog.normalize(text.encode('utf-8')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128) So if there is someone around here who knows where the problem is and how I can fix it, it would be very cool. Removing the non-ascii characters from my js strings is not really an option as there are a LOT of them. Thanks for the help. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

