peerlessDJ
Topic Author
Posts: 5
Joined: 28 Jan 2019, 06:37

Chinese display not work nice

30 Jan 2019, 02:50

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
 
peerlessDJ
Topic Author
Posts: 5
Joined: 28 Jan 2019, 06:37

Re: Chinese display not work nice

30 Jan 2019, 02:51

and the result
4.png
4.png (9.46 KiB) Viewed 261 times
 
peerlessDJ
Topic Author
Posts: 5
Joined: 28 Jan 2019, 06:37

Re: Chinese display not work nice

30 Jan 2019, 06:35

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 258 times
 
User avatar
sfernandez
Site Admin
Posts: 1624
Joined: 22 Dec 2011, 19:20

Re: Chinese display not work nice

30 Jan 2019, 11:56

As you found our framework works with UTF8 strings.

I think we can mark this topic as solved.
 
User avatar
jsantos
Site Admin
Posts: 2559
Joined: 20 Jan 2012, 17:18
Contact:

Re: Chinese display not work nice

01 Feb 2019, 14:30

In C++11 you can use UTF8 string literals with
u8 " (unescaped_character|escaped_character)* "

Who is online

Users browsing this forum: No registered users and 4 guests