[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Desktop Entry Standard replacement for Debian menu?

On Fri, Jan 25, 2002 at 12:10:13AM +1100, Martijn van Oosterhout wrote:
> So, what encoding is being used here? Is there an implied encoding for each
> language or what?

The link that Chris gave [1] states:

 The encoding for values of type localestring is determined by the Encoding
 field of the desktop entry. This field should always be present. (However,
 many legacy files may not include it.) 

 Only two values for Encoding are currently defined: 'UTF-8', and
 'Legacy-Mixed', and desktop files must not use any other value.
 Implementations must support the UTF-8 encoding, and may choose to support
 Legacy-Mixed in addition. For this reason, authors of desktop files are
 encouraged to use the value 'UTF-8'.


 The Legacy-Mixed encoding corresponds to the traditional encoding of
 desktop files in older versions of the GNOME and KDE desktop files. In this
 encoding, the encoding of each localestring key is determined by the locale
 tag for that key, if any. For keys without a locale tag, the value must
 contain only ASCII characters. 

 If the locale tag includes an .ENCODING part, then that determines the
 encoding for the line. Otherwise, the encoding is determined by the
 language, or language-country pair from the locale tag, according to the
 following table.

- (another) Chris

[1] http://www.freedesktop.org/standards/desktop-entry-spec/desktop-entry-spec.html#CHARACTER-ENCODING
Chris Halls | Frankfurt, Germany

Reply to: