Home > Software engineering >  Debugging lua string to C gibberish, iconv - utf-8 into the gibberish
Debugging lua string to C gibberish, iconv - utf-8 into the gibberish

Time:09-21






1. Utf-8 to iconv support: TCVN, VISCII, Windows - 1258 (CP1258),
2. Gameword. CSV configuration keeps a multilingual translation utf-8

No error is not successful, I do not know why?
Hope which ace to show just a little, be obliged!

CodePudding user response:

In the same way, gameword CSV Chinese can be supported by the utf-8 to iconv GBK,
The article I don't know why not?
thank you

CodePudding user response:

Now find iconv support these three more coding, coding temporarily not found other more

CodePudding user response:

Can try to UNICODE first UTF8, if the normal turn again to the specified code page
MultiByteToWideChar (CP_UTF8



CodePudding user response:

MultiByteToWideChar (sourceStr CP_UTF8, 0, 1, (LPWSTR) pUnicode, unicodeLen);
Int targetLen=WideCharToMultiByte (CP_ACP, 0, (LPWSTR pUnicode), 1, (char *) pTargetData, 0, NULL, NULL);
Excuse me, I have called the two functions, found that "" Chinese + the" "can be normal;
The more pure, "" can not normal;
Ask what is going on? Thank you

CodePudding user response:

I am a reference:
Conversion between UTF8 and UNICODE (VC)
https://www.cnblogs.com/miaohw/archive/2011/08/20/2147362.html
And
Introduction to Unicode and analyzes, from a Vietnamese case about
https://blog.csdn.net/mayao11/article/details/7423959

CodePudding user response:

If above use the MultiByteToWideChar (CP_UTF8, turn UTF8 first to UNICODE, the more pure, with a lot of question mark is normal? May can not find,

Then using the function iconv turn UNICODE again to specify CP1258 from_charset (the word coding) parameters, to_charset what are good?
Using the function iconv always transcoding failure.


thank you
  • Related