Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Japanese characters do not display on dialogbox.

obatake5TC3R
Advocate

Japanese characters do not display on dialogbox.

obatake5TC3R
Advocate
Advocate

I am making script by VisualStdio(C++) on windows.

So I made a dialogbox on Fusion360. But japanese chacters not dispay.

Which do I use SIFT-JIS or utf8 code ?

I tested both checters, but not displayed on the dialogbox.

How do I do?

 

0 Likes
Reply
299 Views
1 Reply
Reply (1)

KrisKaplan
Autodesk
Autodesk

The API accepts and returns UTF-8 encoded strings.  For example, the following C++ code can be used to display UTF-8 strings in a message box.

 

extern "C" XI_EXPORT bool run(const char* context)
{
	app = Application::get();
	if (!app)
		return false;

	ui = app->userInterface();
	if (!ui)
		return false;

	ui->messageBox(u8"こんにちは", u8"タイトル");

	return true;
}

Of course, any UTF-8 encoded character string should be fine (not just 'u8' string literals).  If there is a specific API that you see is not behaving this way please post a specific example demonstrating the problem and we will look into it.

 

Kris



Kris Kaplan
0 Likes