W
whatdoineed2do
hi,
i've not done much i18n stuff before but i was wondering how, if given
a string (encoded as russian or kanji mb) how i would get this
converted to utf8. i'm working with forte compiler on solaris
i've something like:
const char* s = "...."; // some russian/kanji encoded
locale l("en_US.UTF8");
wstringstream cnv;
cnv.imbue(l);
cnv << s;
cout << "orig='" << s << "'\nconverted='" << cnv.str() << "'" <<
endl;
but this doesnt work. can anyone give me some advise?
thanks
ray
i've not done much i18n stuff before but i was wondering how, if given
a string (encoded as russian or kanji mb) how i would get this
converted to utf8. i'm working with forte compiler on solaris
i've something like:
const char* s = "...."; // some russian/kanji encoded
locale l("en_US.UTF8");
wstringstream cnv;
cnv.imbue(l);
cnv << s;
cout << "orig='" << s << "'\nconverted='" << cnv.str() << "'" <<
endl;
but this doesnt work. can anyone give me some advise?
thanks
ray