Character name charset

11/26/2012 14:45 zakkwilde_17#1
Well guys. I need some help to fix it...

At that source, i got read at Database and source a special characters read. But... some characters dont sending to screen... For exemple: †, ™... It works on GuildName, ClanName... but at character, its dont sending...

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Name at DB:
[Only registered and activated users can see links. Click Here To Register...]

Someone can help or have a idea how to fix? tell me which packet is responsible for this function ... Where can I find it
11/26/2012 15:00 CptSky#2
The default charset of the CO2 client (English & French) is CP1252. For the name, I know that at some point, on official servers, all "special" characters disappeared like this. I think that it is related to the client, but would need a confirmation. The characters are sent to the client, just not shown for the name.
11/26/2012 15:21 zakkwilde_17#3
Quote:
Originally Posted by CptSky View Post
The default charset of the CO2 client (English & French) is CP1252. For the name, I know that at some point, on official servers, all "special" characters disappeared like this. I think that it is related to the client, but would need a confirmation. The characters are sent to the client, just not shown for the name.
I got to thinking that too... It might be that the client does not support these characters... Just do not understand why some read, and let out another ...
11/26/2012 16:23 -impulse-#4
It's because you send ASCII. Use Encoding.Default.GetBytes and send those bytes instead.
11/26/2012 20:57 zakkwilde_17#5
Quote:
Originally Posted by -impulse- View Post
It's because you send ASCII. Use Encoding.Default.GetBytes and send those bytes instead.
Hmm... i will try it... Now, i'm using UTF7 and got some characters working...
11/26/2012 21:20 Spirited#6
It's also the way the server encodes it.
Encoding.GetEncoding(1252) should do the trick.