Skip to main content
daitranthanhoa
Inspiring
April 26, 2021
Answered

How can show message with UTF8 Text with CAlert in SDK 2021?

  • April 26, 2021
  • 2 replies
  • 642 views

I want show a message with UTF8 Text:

This my code:

CAlert::InformationAlert("メディア: FAメカニカル\n(C)2009-2021 Inc. ");

 

Result:

 

How can show message with UTF8 Text?

This topic has been closed for replies.
Correct answer K159

Try this.

CAlert::InformationAlert(PMString(_T("メディア: FAメカニカル\n(C)2009-2021 Inc. ")));

2 replies

K159Correct answer
Inspiring
April 26, 2021

Try this.

CAlert::InformationAlert(PMString(_T("メディア: FAメカニカル\n(C)2009-2021 Inc. ")));

daitranthanhoa
Inspiring
April 26, 2021

Thank you, K159.

It is ok.

Community Expert
April 26, 2021

Works fine for me using your code as it is, see the result below

-Manan

daitranthanhoa
Inspiring
April 26, 2021

Do you must setting project?

Community Expert
April 26, 2021

No, I did not do anything with the project setting. I just used an SDK sample project and pasted your code into it. It seems you are using WIN, and I used MAC. Maybe this is the reason I could not reproduce the issue. I Will try it on a WIN machine when I get time

-Manan