Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
BorisU
Beginner


Joined: 03 Jan 2009
Posts: 21

PostPosted: Sat Jan 03, 2009 6:43 pm   

XML Export/Import is broken for non-english codepage.
 
version 2.37

Export seems OK, except it writes encoding="ISO-8859-1" in the header, while the text is definitely in Win-1251 codepage (It is a russian MUD Cool )
During import all russian characters are lost Evil or Very Mad
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 03, 2009 7:00 pm   
 
CMUD doesn't support unicode, and this is another example where that fails. It might be possible to do something about this particular example, but generally speaking, there's not much that can be done.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
BorisU
Beginner


Joined: 03 Jan 2009
Posts: 21

PostPosted: Sat Jan 03, 2009 7:06 pm   
 
At least CMUD can use system default codepage instead of ISO-8859-1 Question
Reply with quote
BorisU
Beginner


Joined: 03 Jan 2009
Posts: 21

PostPosted: Tue Jan 06, 2009 9:10 am   
 
Copy/paste settings is also broken. all russian characters are lost Crying or Very sad
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jan 06, 2009 9:37 am   
 
Copy/paste uses XML, that's why.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jan 06, 2009 6:33 pm   
 
The reason CMUD uses ISO-8859-1 is so packages uploaded to the shared package library (which also uses the XML) can be shared with other people. It defines the standard XML character set to be used for scripts. I will add this to the to-do list for a future version to see if I can modify the package library to store a "code page" for each package so that different packages can have different code pages. But this probably won't be done until the rest of the unicode support is added to CMUD, and that's probably a year away.
Reply with quote
BorisU
Beginner


Joined: 03 Jan 2009
Posts: 21

PostPosted: Tue Jan 06, 2009 8:22 pm   
 
This means that cmud is practically unusable for me for year Crying or Very sad

I do not understand why I can succsefully enter russian characters, but can not copy/paste settings containing them. Why the conversion (actually loss of information) is taking place. Let cmud think that it is a standard code page. Why convert?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net