<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.kai-mai.com">
<channel>
 <title>Kai Mai&#039;s Blog - Take Back the Web - Nodes for internationalization</title>
 <link>http://www.kai-mai.com/tags/internationalization</link>
 <description>Nodes containing the tag internationalization</description>
 <language>en</language>
<item>
 <title>Java:  Loading Resource Bundle File with UTF-8</title>
 <link>http://www.kai-mai.com/node/128</link>
 <description>&lt;p&gt;
You hear that UTF-8 is the gold standard in internationalization.
so you prepare your JSP pages to &lt;a href=&quot;http://weblogs.java.net/blog/simongbrown/archive/2004/03/displaying_inte.html&quot;&gt;use UTF-8 charset&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Then you get your resource bundle files(property files) to use UTF-8 encoding.  Everything looks fine in your text editor.
&lt;/p&gt;
&lt;p&gt;
Now you load up the pages.  Every character retrieved from your resource bundles look garbled.
&lt;/p&gt;
&lt;p&gt;
This is because Java loads property files using ISO 8859-1 character encoding.  &lt;a href=&quot;http://www.thoughtsabout.net/blog/archives/000044.html&quot;&gt;Resource bundle utf-8 hack&lt;/a&gt; comes to rescue.  
&lt;/p&gt;
&lt;p class=&quot;awTags_TagLinks&quot;&gt;Tags: &lt;a href=&quot;tags/47&quot;&gt;java&lt;/a&gt; &lt;a href=&quot;tags/214&quot;&gt;utf-8&lt;/a&gt; &lt;a href=&quot;tags/215&quot;&gt;internationalization&lt;/a&gt; &lt;/p&gt;</description>
 <category domain="http://www.technorati.com/tag">java</category>
 <category domain="http://www.technorati.com/tag">utf-8</category>
 <category domain="http://www.technorati.com/tag">internationalization</category>
 <pubDate>Sat, 08 Mar 2008 22:47:19 -0800</pubDate>
</item>
</channel>
</rss>
