Mess with Russian Language ~ at Runboard.com
Silicon Commander Games
 PrismServer
  Mess with Russian Language
Support
Search

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


 
Megalan
Registered user
Global 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 Send Email to Megalan   Send PM to Megalan
 
GlitchSCG
Head Administrator
Global user

Registered: 01-2005
Posts: 327
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 Send Email to GlitchSCG   Send PM to GlitchSCG
 
vladkl
Registered user
Global 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 Send Email to vladkl   Send PM to vladkl
 


Add a reply






Powered by AkBBS 0.9.5b  -  Link to us   -  Blogs   -  Hall of Honour   -  Chat
Click here to get your own free message board
You are not logged in (login)      Board's time is: 11/8/2009, 3:06 am