ByLost 146 Posted June 20, 2020 Share Posted June 20, 2020 (edited) Version of Files : 40k Hi Devs I'm having an accentuation error in c ++, when I enter the game the accent shows "?". Example: ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ação")); Result ingame A??o Thanks Edited June 20, 2020 by ByLost Link to comment Share on other sites More sharing options...
Contributor TMP4 11076 Posted June 20, 2020 Contributor Share Posted June 20, 2020 (edited) With notepad++ change the file's (the .cpp) encoding to the correct one. Most of the time "ansi" is the needed. Also since it's an LC_TEXT do the same with your locale_string.txt. Probably you want to ctrl+a ctr+c the cpp's text and overwrite after changing the encoding, because it will most likely replace the characters with ?? in your cpp, but after you can delete the whole and paste what you ctrl+c before so you will not have ??. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Solution Vanilla 1458 Posted June 20, 2020 Solution Share Posted June 20, 2020 I highly recommend switching to utf-8 for client encoding. Either way the problem you encounter here is mismatching encoding. The client expects a different encoding and therefore cannot display the character properly. There are also bulk tools that allow you to change the encoding of multiple files. For UTF8 there's for example UTFCast Express which is free. 2 We are the tortured. We're not your friends. As long as we're not visible. We are unfixable. Link to comment Share on other sites More sharing options...
ByLost 146 Posted June 20, 2020 Author Share Posted June 20, 2020 (edited) 10 minutes ago, Vanilla said: I highly recommend switching to utf-8 for client encoding. Either way the problem you encounter here is mismatching encoding. The client expects a different encoding and therefore cannot display the character properly. There are also bulk tools that allow you to change the encoding of multiple files. For UTF8 there's for example UTFCast Express which is free. I will try UTF8 without visual code for C ++. Thank you. ps: you are very well known in Brazil ^^ Edited June 20, 2020 by ByLost 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now