View Single Post
Old 01-08-2012, 01:55 PM   #88
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Current status:
- "extract" now produces UTF-8 files.
- "compile" now expects UTF-8 files.
- A new mode named "iso2utf" has been added to the tool. This was quickly written up after the previous discussions (Well, it's 50 LOC, not 20, but still...) This mode can be used for converting existing localizations. Sample usage is "java -jar kt-l10n.jar iso2utf -f -s com/ -t com/". This would convert all .properties files inside com/ from ISO-8859-1 to UTF-8. Source and target directories must be the same; in other words, files are updated in place. DO NOT run this more than once on the same directory, or the output WILL become bullshit. (It's converted from ISO-8559-1 to UTF-8 on the first run; it would be converted to something meaningless on the second run).

The current version has been checked in. I've tested the entire round-trip with the german translation, and it works for me. I also tested with some dummy russian file, and it seems to work as well. (try it... "pаз, два, тpи, четыpе", "блядь... не делает" ;-) ). So we should be ok to move to UTF-8.
ixtab is offline   Reply With Quote