Hot Door CORE Forum

Full Version: chinese character
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

无脸男

i created a panel like this:
void FacelessDesign:Tonguelugin::postStartup()
{
const double marginWidth = 6.0;
const double marginHeight = 6.0;

this->__docPanel = hdi::core:Tongueanel(
"二维码",
hdi::core::Size(hdi::core:Tongueanel::typicalWidth, 140.0),
false,
false);

this->__docPanelGeneratButton = hdi::core::Button(
hdi::core:Tongueoint(marginWidth, 2),
"生成",
hdi::core:TongueanelWindowType);
this->__docPanelGeneratButton.setEnabled(false);
this->__docPanelGeneratButton.setClickCallback(HDI_CORE_CALLBACK(FacelessDesign:Tonguelugin, this, __GeneratQRcodeCB));
this->__docPanel.addWidget(this->__docPanelGeneratButton);
}
and characters in the illustrator's panel is Garbage characters.
how to use it properly?

无脸男

Resolved!
use utf8 string instead.
I'm glad you were able to resolve this quickly! CORE expects all strings to be in UTF-8 encoding, which should be stressed more heavily in the documentation. I will make a note to improve this.