i convert the string to widestring to be set correctly and yeah the ws contain the word without any encoding issue, but i am wondering why when i try to write it to the Buff it shows there strange characters!
// Windows style
char
*
a
=
"Дыа"
;
wchar_t
*
b
=
new
wchar_t
[
10
]
;
CharToOem
(
a
,
b
)
;
// CHAR* to WCHAR*
OemToChar
(
b
,
a
)
;
// WCHAR* to CHAR*