[jsword-devel] i18n features in Java 6

Martin Denham mjdenham at gmail.com
Wed Dec 29 14:14:31 MST 2010


Hi,

I have been grappling with escaped foreign characters in properties files
recently.  Android resource files allow normal foreign characters to be used
but standard java properties require awkward escape codes e.g. /u0107
resulting in unreadable files containing strings like:
   Pentateuch = Pi\u0119cioksi\u0105g
In case somebody else makes the same mistake there is a utility called
native2ascii that converts foreign characters to escape codes.

However, there is a new feature in Java 6 that allows foreign characters to
be entered directly into properties files. See this article for info:
http://jdevelopment.nl/java/internationalization-jsf-utf8-encoded-properties-files/

I realise you are trying to simplify the translation of resource files so
thought I would throw this in.

Best regards
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20101229/493a9862/attachment.html>


More information about the jsword-devel mailing list