Im getting a problem.
This code:
Code: Select all
locale::global(locale(""));
wifstream f("in.txt", std::wifstream::in);//in.txt - file encoding utf-8
wstring s1;
const wchar_t *load_string;
getline(f, s1);
load_string=s1.c_str();
load_string=(wchar_t*)load_string;
wofstream out("out.txt");
out<<load_string;//good work and encode utf-8
env->addEditBox(load_string, rect<s32>(350, 80, 550, 100));// bad work and encode ????
if writing this:
Code: Select all
load_string=L"text";
env->addEditBox(load_string, rect<s32>(350, 80, 550, 100));
Please help me.
This result: