Hi, I have an array of char data that holds the UTF 8 character string "%c本ゲームの#5Cシステムデータ#0Cは\n"
CSaveData::UTF8toSJISForce(char *dst,size_t buffsize,const char *src )
CSaveData::UTF8toSJISForce( szText, sizeof( szText ), tmpBuf );
where tmpBuf is the character data. When stepping through Visual Studio`s debugger the value of tmpBuf is as expected in the function call above, but when entering the UTF8to... function I check the value of src in the debugger and it is now - "譛繧繝繝縺#5C繧繧繝・Β繝・・繧#0C縺繧繝繝医そ繝繝悶↓蟇蠢懊縺縺・∪縺吶・" which is of course not what is expected.
The call to UTF8... is in one file and the implementation is in another .cpp file, I`ve checked the encodings of both files and they are indeed both in UTF8 format, so I don`t understand what is causing this error! Please help