Hot Door CORE Forum
chinese character - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Getting started (http://hotdoorcore.com/forum/forumdisplay.php?fid=6)
+--- Thread: chinese character (/showthread.php?tid=27)



chinese character - 无脸男 - 06-19-2014

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?


RE: chinese character - 无脸男 - 06-20-2014

Resolved!
use utf8 string instead.


RE: chinese character - garrett - 06-28-2014

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.