Runboard.com
Слава Україні!

runboard.com       Sign up (learn about it) | Sign in (lost password?)

 
Megalan Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 07-2007
Posts: 2
Karma: 0 (+0/-0)
Reply | Quote
posticon Mess with Russian Language


For example i'm typing "Тест" and other clients get "????"

How to fix that?

Last edited by Megalan, 7/20/2007, 2:48 am
7/20/2007, 2:47 am Link to this post Send Email to Megalan   Send PM to Megalan
 
GlitchSCG Profile
Live feed
Blog
Friends
Miscellaneous info

Head Administrator

Registered: 01-2005
Posts: 347
Karma: 6 (+7/-1)
Reply | Quote
Re: Mess with Russian Language


The PrismNetworkStream class handles reading and writing from/to the sockets, it uses the Encoding class to create a string based on the bytes that were received in the buffer,

Encoding.ASCII.GetString(_buffer, 0, BytesRead);

I believe the problem is that PrismServer uses the Encoding.ASCII, and Russian is a double byte encoded character set.

You could try changing the Encoding.ASCII to Encoding.Unicode, or one of the UTF (not sure which one) and recompile the client and server. Let me know if this works!
7/20/2007, 6:54 am Link to this post Send Email to GlitchSCG   Send PM to GlitchSCG
 
vladkl Profile
Live feed
Blog
Friends
Miscellaneous info

Registered user

Registered: 08-2007
Posts: 1
Karma: 0 (+0/-0)
Reply | Quote
Re: Mess with Russian Language


This work with Encoding.UTF8 ...
8/1/2007, 5:38 am Link to this post Send Email to vladkl   Send PM to vladkl
 


Add a reply





You are not logged in (login)