cancel
Showing results for 
Search instead for 
Did you mean: 

UTF-8 in Keil

arsalan_elec
Associate II
Posted on September 18, 2016 at 20:23

Hello Friends,

can anybody tell me how can we print utf-8 in keil uvision? i changed the editor encoding to utf-8 without signature. i tried this codes with no success:

#pragma import(__use_utf8_ctype)
wprintf(L
''This is € Sing''
);
wchar_t
ws[]=L
''€''
;
printf
(
''This is %ls sign''
,ws);
putwchar(0x20ac); 
//€

#keil-arm-uvision-printf-utf-8
3 REPLIES 3
Posted on September 18, 2016 at 21:28

What quantifies success in this case?

The output routines? The terminal to which the output goes?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
arsalan_elec
Associate II
Posted on September 18, 2016 at 22:26

i want to see it in Debug viewer.

i want to check the output of jansson json_pack.

ok i found that wchar_t is not enough for €, but that was for sample; i cant print any two bye utf-8 char or string.
arsalan_elec
Associate II
Posted on September 20, 2016 at 09:30

Can you please help me?

what do you think?