Hi  Yu,

This looks to be more related to compiler than to Wt ...
C++ doesn't always handle Unicode characters nicely.
You should try externalizing strings, at least it always works for me :-)    .
You could try loading  text using  WString::tr( .. )
[ check out the WMessageResourceBundle  -
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WMessageResourceBundle.html
] .


Cheers,
Dule


2010/7/3 yufeng <[email protected]>:
> hi:
>  I am chinese,I upgrade wt to wt3.1.3 ,There is a problem about WText.
>  In Wt3.1.3 ,why show like this "hello,����������yggh"?In early wt ,Ok
>  here is my code:
>   ....
>   WText* pUserNameText=new WText("hello,你好!欢迎你来三明日报投稿!
> yyyggh",mpHeaderDiv);
>  pUserNameText->setId("WebUser");
>  .....
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>



-- 
Kind Regards,
Dushan Savich
[email protected]
http://stosha.com/
+381 64 329 33 55
Nehruova 95/51
11070 New Belgrade
Belgrade
Serbia

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to