SIDEBAR
»
S
I
D
E
B
A
R
«
GWT, eclipse, i18n, and UTF-8 properties
July 16th, 2009 by P.G.Taboada

GWT does a great job reading UTF-8 encoded property files:

Both Constants and Messages use traditional Java properties files, with one notable difference: properties files used with GWT should be encoded as UTF-8 and may contain Unicode characters directly, avoiding the need for native2ascii.

This is nice, but there is a tiny little problem when using eclipse: the default encoding for java property files is ISO-8859-1.

This setting can be changed in the eclipse preferences:

Bild 1

Or you can change the encoding of a single file with “EDIT -> Set Encoding”…


4 Responses  
  • Bikette writes:
    October 12th, 201012:25at

    Thanks, this works for me !

  • djjeck writes:
    October 26th, 201002:32at

    whoa! so simple, yet I would have never come up with it.

  • skrat writes:
    December 9th, 201117:23at

    THanks, that helped

  • Dennis writes:
    December 13th, 201121:14at

    Thank you so much!!!
    Tooltip text of the Maps API Markers is a normal Java String.
    I searched and searched and searched and then I found this!
    YES!!!!


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa
Bitnami