Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Gist

This UTF-8 line will not work in the properties files,

...

In Java code then you need to convert using Java's native2ascii tool which results in,

Code Block
some.dutch.text = \u00c9\u00e9n van de wijken van Cura\u00e7ao heet Sali\u00f1a.

To work with language then, you need to convert back and forth all the time.

The Details

The standard approach uses the ResourceBundle API in combination with properties files which contains externalized text. The ResourceBundle API will load the proper text based on the current Locale and the default (fallback) locale.

...