cejug / hurraa

Opensource project to resource management
GNU General Public License v2.0
16 stars 18 forks source link

messages_pt_BR.properties using iso-8859-1 encoding #151

Closed helio-frota closed 10 years ago

helio-frota commented 10 years ago

use this command to check file encoding:

[hf@hulk resources]$ file -bi messages_pt_BR.properties 
text/plain; charset=iso-8859-1

When open it with utf8 editor we get this:

menu.incident=Ocorr�ncias menu.incident.open=Abrir Ocorr�ncia

paulojribp commented 10 years ago

I agree if this @eprogramming. But I don't like to use \u00e3 for brazilian characters, I prefer use natural text:

label.no=N\u00e3o
#instead
label.no=Não

This can work properly with UTF-8. But, for now, lets keep your way so we can focus our effort on really important things. Thanks.

paulojribp commented 10 years ago

PS: Sorry for not responding yesterday on IRC. I was teaching, and keep IRC open only for conversation registry.

helio-frota commented 10 years ago
native2ascii -encoding utf8 messages_pt_BR.properties x.properties

http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/native2ascii.html

jstl fmt (resource bundle) expects iso-8859-1 instead of UTF-8, is technical issue

paulojribp commented 10 years ago

no problem.