Re: [Boa Constr] Encoding on Ubuntu
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-09-25 16:08:45
|
Hi, ianaré sévi wrote: > I have found there are problems, not just in linux, with having > non-ascii characters encoded in utf-8 as translation strings. In my > case I used all ascii and used gettext to add any accents. But then > again I was already using it for translations. I worked around the problem by just removing the offending characters and using gettext to get the correct thing. > > Anyway, as far as your problem, you do have the encoding set at the > top of your file correct? Yeap. > > However, there are problems with boa in linux with utf-8. Sometimes it > will complain about error messages or print statements. The same code > run from command line is fine, as is the same code in windows. Good to know. Finding all kind of other little (and bigger things). - I call maximize on the frame and it works on windows but not gtk2 - some of the sizers don't seem to work under gkt2, at least they don't work the same way then under windows (but you know about this one already). - I am loading dummy notebook pages initially and then when user clicks on them I load the real one. This is done to optimize/speed up initial loading. On gtk2 this crashes, seen something about no event being fired when deleting a nb page - will have to look into this. Will have to setup cvs server before going much further as otherwise I will end up with two versions instead of one which works on both :(. Werner - Never > had the chance to investigate further ... sorry > > 2007/9/25, Werner F. Bruhin <wer...@fr...>: >> Me again, >> >> Do I have to do some special steps moving Python source from my Windows >> box to Ubuntu? >> >> 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')) >> >> If I copy/paste this string into the shell and print the variable it >> shows correctly. >> >> Werner > |