I want to display it on screen in Japanese

I tried below. But, I fail.

#include

QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
or
/* UTF-8 ETC-JP Shift-JIS */ QTextCodec::setCodecForCStrings(QTextCodec::codecForName(“UTF-8”));

#if 0
message.setText("Hello

");
#else
message.setText("こんにちわ

");
#endif

Must I rebuild rootfs ?

Refer

Digi ESP > Help > Help Docs > QT Development > QT Reference documentation > Overviews >EUC-JP Text Codec

and

Digi ESP > Help > Help Docs > QT Development > QT Reference documentation > Classes > QLocale Class Reference [QtCore module]

Thank you.

I try it.
Must I install Japanese font?