mamute
mamute copied to clipboard
Persian localization problem
I've localize mamute in Persian like this:
about.reputation.permission = What can you do with your reputation
about.reputation.upvote = <span class="karma">{0}</span> امتیار لازم دارید تا بتوانید به سؤال/پاسخ/نظری رأی دهید.
about.reputation.flag = <span class="karma">{0}</span> امتیاز برای فلگ کردن پرسش/پاسخ لازم دارید.
about.reputation.edit.question = <span class="karma">{0}</span> امتیاز برای ثبت پیشنهاد برای اصلاح یک پرسش لازم دارید.
about.reputation.edit.answer = <span class="karma">{0}</span> امتیاز برای ثبت پیشنهاد برای اصلاح پاسخ نیاز دارید.
about.reputation.vote_comment = <span class="karma">{0}</span> امتیاز برای رأی مثبت به نظرات نیاز دارید.
But when I package and run the project, characters are not showing properly
I think it is about unicode problem but in source code we have 'utf-8' attribute in html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Ù
اÙ
Ùت - پرسشâÙØ§Ø Ø´Ú©-Ù-تردÛدÙا ٠پاسخâÙا! - دربارÙ</title>
Any one could help me?
Hi Milad, sorry for the delay.
I think this could be a problem with the encoding of the properties file. If I am not mistaken, Java properties file are encoded with ISO-8859 only, http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html#load(java.io.InputStream ).
Do you know if there's any trick to read an utf-8 properties file?
On Wed, Aug 26, 2015 at 5:48 PM Milad Khajavi [email protected] wrote:
Any one could help me?
— Reply to this email directly or view it on GitHub https://github.com/caelum/mamute/issues/190#issuecomment-135166430.
Hi csokol,
Here are some topics on this issue: http://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle http://snipplr.com/view/60811/read-properties-file-as-utf8/ I'm reading the source code of mamute, vraptor, vraptor-i18n to find the source of this problem. If you know in which module in which line of code, I need to fix this issue, help me to solve this.