|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: 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 )
During import all russian characters are lost |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Sat Jan 03, 2009 7:06 pm |
At least CMUD can use system default codepage instead of ISO-8859-1
|
|
|
|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Tue Jan 06, 2009 9:10 am |
Copy/paste settings is also broken. all russian characters are lost
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Jan 06, 2009 9:37 am |
Copy/paste uses XML, that's why.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Tue Jan 06, 2009 8:22 pm |
This means that cmud is practically unusable for me for year
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? |
|
|
|
|
|