Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Accentuation in c ++


ByLost
Go to solution Solved by Vanilla,

Question

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 by ByLost (see edit history)
Link to post

3 answers to this question

Recommended Posts

  • 0
  • Solution

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.

  • Love 2

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to post
  • 0

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.

 

xOoie.png

 

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 by TMP4 (see edit history)
  • Love 1
Link to post
  • 0
Posted (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 by ByLost (see edit history)
  • Love 1
Link to post
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.