#cant read unicode from file to edit box winapi

1 messages · Page 1 of 1 (latest)

uneven sky
#

i have a log file, it has unicode and "\n" characters in it, i tried to write it with fstream wftream stringstream wstringstream setwindowtextW setwindowtext and none of them worked, its just showin english characters as normal but showing unicode as wiered stuff, what should i do? thanks for help

mental ironBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

brittle swift
#

what unicode encoding exactly

uneven sky
brittle swift
uneven sky
brittle swift
#

yeah

uneven sky
#

okay i will try

#

thank you

mental ironBOT
#

@uneven sky Has your question been resolved? If so, run !solved :)

brittle swift
#

there's also the possibility of enabling UTF-8 support for the WhateverA windows functions

uneven sky
#

for guys who wonder how to convert, check this out:

#
std::wstring wBuffer = L"hello";
std::string str;
std::wstring_convert<std::codecvt_utf16<wchar_t>> converter;
str = converter.to_bytes(wBuffer);
#

!solved