Page 1 of 1

Chinese display not work nice

Posted: 30 Jan 2019, 02:50
by peerlessDJ
In my sample, i use LocalFontProvider to import Chinese font
1.png
. if chinese in Xaml, it works, but if chinese in variable, it garbled.
2.png
3.png

Re: Chinese display not work nice

Posted: 30 Jan 2019, 02:51
by peerlessDJ
and the result
4.png
4.png (9.46 KiB) Viewed 262 times

Re: Chinese display not work nice

Posted: 30 Jan 2019, 06:35
by peerlessDJ
Ok, gb2312 convert to utf8 , it works
%KH{{E}F}3Q]Y9P53}RTL$T.png
5{0A`FFDTE6`}2~H5R$_K(N.png
5{0A`FFDTE6`}2~H5R$_K(N.png (6.74 KiB) Viewed 259 times

Re: Chinese display not work nice

Posted: 30 Jan 2019, 11:56
by sfernandez
As you found our framework works with UTF8 strings.

I think we can mark this topic as solved.

Re: Chinese display not work nice

Posted: 01 Feb 2019, 14:30
by jsantos
In C++11 you can use UTF8 string literals with
u8 " (unescaped_character|escaped_character)* "