Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using resource bundle with IDEA IDE

I'm using IDEA IDE to create i18n.. I created English version of my property file and then created a Russian one. But when I run my web application I saw Ïðîñìîòð Íîâîñòè instead of my text in Russian.. Tell me please what was wrong in IDEA IDE or whether there's a bug in resource bundle plugin.

UPDATE

When I write I18n in eclipse and fill in all necessary fields into Russian language in Eclipse resource bundle plugin instead of Russian text I saw something like this u0443u0434u0430u043Bu0438u0442u044C but when I start my app it displays all well.. And when I start project in IDEA IDE with such properties everything works fine..

like image 788
Aleksei Bulgak Avatar asked Aug 24 '26 09:08

Aleksei Bulgak


1 Answers

I am able to recreate your issue using a different language (Chinese) ... I just tried this in my IntelliJ IDEA instance (I am running IntelliJ IDEA 11.1.3).

I have a ResourceBundle and I dropped in Simplified Chinese characters into my Resource Bundle as follows:

messages.properties

user.label=名称

When I ran my Grails app through IDEA, I got characters ?? instead of the Chinese Characters 名称

This is a bug with IntelliJ Resource Bundle Editor. Here is a link to the Issue:

http://youtrack.jetbrains.com/issue/IDEA-90460

I know it does not give you a fix, but at least it explains to you why it is happening and why you do not see the issue with Eclipse.

like image 157
Philip Tenn Avatar answered Aug 26 '26 23:08

Philip Tenn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!