[Project_owners] Using foreign language in my extension
jens.b at web.de
Tue Nov 23 21:00:50 EST 2004
> How do you create your foreign language file ?
All XML-based files containing special characters (dtd, rdf, xul)
should be explicitly *saved* in the UTF-8 encoding (and not
Windows-xxxx, ISO-8859-1, ASCII or ANSI). Applications that support
Unicode include the Notepad application of Windows 2000 and above
(File, Save as, Encoding), UltraEdit and countless others.
As an alternative, you could also use the numeric syntax - for
example, ö represents the German o-Umlaut (o with two dots above
it). However, UTF-8 is more readable and easier to edit.
IIRC, UTF-8 really is the default if you do not specify an encoding,
as Rod Whiteley guessed. However, specifying it won't hurt!
For .properties files, you use regular encodings, though, and escape
all non-ASCII characters with the \uXXXX syntax.
More information about the Project_owners