Re: Problem about programming gtk+ with my native language



Thank you for your instant reply.
 
But it's true that I chose the utf-8 save format for my source file.
But still, the letters fail to appear on the form.:(
Any other suggestion?
 
Thanks again.

 
2007/4/1, Jjgod Jiang <gzjjgod gmail com>:
Hi,

2007/4/1, Kun Niu <haoniukun gmail com>:
> Dear all,
>
> I'm new in gtk+ programming.
>
> I've successfully wrote a gtk+ application on Windows with Visual Studio
> 2003.
> And it runs well.
> But when I change the letters on the button to my native
> language(Chinese),question marks appear.:(
> I tried various functions such as g_locale_to_utf8 and g_locale_from_utf8 so
> on.
> But I can't find my word on the window.
> All are question marks or squares.
>
> Would anyone please help me out?
> Any help would be appreciated and thanks in advance.

Which encoding are you writing your button names in? Localized Windows
normally use ANSI encoding by default. You should tell Visual Studio to
use UTF-8 explicitly by select it in File->File Properties.

- jjgod.



--
失业
         牛坤
MSN:haoniukun hotmail com

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