Are Spanish characters displayed incorrectly?

I am using GWT. I have implemented internationalization to support the Spanish language. but Spanish characters are not displayed properly. Example: Teléfono Buscar is displayed as. enter image description here(see some unwanted char after Tel). I am using IE browser.

Do I need to configure any additional settings? Thank!

+2
source share
2 answers

I suspect that this may be due to the fact that your editor does not use encoding UTF-8.

If you use Eclipse, you can configure it to use UTF-8for *.propertiesby going to Window > Preferences > General > Content Types.

, Default encoding UTF-8, .

enter image description here

, vi.

+2

, ResourceBundle, , PropertyResourceBundle, java.util.Properties, , "" , . PropertyResourceBundle , InputStream , Reader. "load".

, "load", InputStream, , ISO 8859-1 (Latin1). :

  • , PropertyResourceBundle, , Reader. , .
  • Unicode escapes (\ uxxxx) -ASCII- .
+1

All Articles