I spent the past week messing with encoding: the idea was to create a multi-language interface. I wanted to use .lang files often used in PHP because of it's simplicity. It's format is:

;keyword
clé
(empty line)
;next
suivant
(empty line)

The problem is that I cannot for some reasons display characters out of the 128 range i.e also special characters we use in French, Finnish...

I couldn't make it, so I add to find a different solution. I'm using "dictionary" classes which is the equivalent of T classes in Symbian. Here a piece of source

import dict
 
class TLang(dict):
    def __init__(self):
        dict.__init__(self)
 
        # and now the dictionary value like:
        self['value']    = valeur
        self['Edit']     = u'Editer'
        self['Next']     = u'Suivant'
        self['Loading']  = u'Chargement'

Then we use it like

>>TAG = TLang()
>>print TAG['Loading']
Chargement