Re: [Boa Constr] Encoding on Ubuntu
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-09-28 15:29:22
|
Hi Oleg, Oleg Deribas wrote: > Hello, > > Werner F. Bruhin said the following on 25.09.2007 13:31: > >> I am asking as I get encoding errors when I try to run my application >> from within Boa, it complains that 'utf-8' can't decode: >> self.MainMenu.SetLabel(wxID_TWCBFPRINTINGLABELVINOTETAGS, >> _('Vinoté printable tags')) > > Have you tried to replace it with this: > > _(u'Vinoté printable tags') Yeap, that fixes it. Anyone having a script out there to change all (for a file and/or folder) the "_('" to "_(u'" and one should probably also change all the # -*- coding: iso-8859-1 -*-# to # -*- coding: utf-8 -*-# and probably also all the normal (non gettext) strings too. Werner |