Skip to main content
arsalan_elec
Associate II
September 18, 2016
Question

UTF-8 in Keil

  • September 18, 2016
  • 3 replies
  • 1659 views
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
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    September 18, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    arsalan_elec
    Associate II
    September 18, 2016
    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
    September 20, 2016
    Posted on September 20, 2016 at 09:30

    Can you please help me?

    what do you think?