i want change xml file encoding

What language are you looking at? As long as you use romanized characters, you can do non-standard alphabet characters this way.:

&#233 (represents é. Add a semicolon after it to get this. I had to remove it because it got changed to the character)

I don't know exactly how they're doing asiatic characters, as I don't own my copy in an asiatic language (or any other non-roman alphabet), but for everything else, you've just got to use the old school way of doing characters. Back in the dos days, if we wanted to insert a character like that, we'd hold down the alt key then press 0, 2, 3, and 3. This would produce one character, but wouldn't be the easiest, so stuff like this usually was dropped. This type of imput is still around to some degree, and you can get the code for them through character map. Just look for the alt+ area down below in the lower right corner.The number after the alt+ will be the number you want (minus the zero). Hope this helps.

EDIT: Actually, I looked on wiki, and here's a good help if you'd like to keep the formatting the same. However, if you don't want to do that, you can change it this way:

Change the "ISO-8859-1" in <?xml version="1.0" encoding="ISO-8859-1"?> to one of the following:
"UTF-7" or "UTF-8" or another encoding (UTF should cover almost every language in the world, but if it doesn't cover yours, there's others).
 
Unfortunately, I don't know what to tell you exactly as I don't have an asiatic version. For starters, do you have asiatic font support? If you don't, this would explain a lot (if you do have them, anything that loads all of your fonts at once, like GIMP, load REALLY slowly. Also, you have font packs that are 16MB or greater. This is not for the faint of heart.).

I'm currently looking for an asiatic reference chart, but doing it the decimal way can be a huge pain in the butt. However, I'd like to know exactly WHY you would want to do this. I may be wrong, but I think that Civ4 is being sold in China, Japan, and other Asiatic nations. It's not to be rude at all, but I feel like this might be an attempt at piracy, which I don't want to touch. So, please specify your intentions so that I can better understand how to help or to just stop all support, depending on what the case is. I won't post my results until I know exactly where this is heading.

EDIT: Just so that you know, I DO have a chart of this, but you must clarify what your intentions are before I am willing to respond with it's link. If you're intending in engaging in piracy, I WILL NOT put it's link here. Sorry, but that's just the way I am.
 
thanks for your reply.
i am a software developer,also i am a civ fans.
so i interest in civ4,not only for the game,also because it use python and xml.
i want know how to use asiatic characters ONLY for technical interest.
civ is a great game,i have licensed copy of the game.i don't want use this technology at piracy,because i am a software developer.
--
i wish you could understand my meaning.
 
Alright. That's good enough for me. The link is .this. I'm sorry if my concern seemed like it was too prying, but the thought crossed my mind when I was looking it up, and I just wanted to make sure first. This link contains the secret hexadecimal byte codes for any language. What I think is going on is that Civ4 is very ignorant towards XML files and doesn't even check which language is being used. To use hexadecimal numbers, follow this format &#x3400; (sorry about this. I don't know a lot of characters and was having a hard time trying to find what I wanted. The difference is just putting an x before your number.). If it isn't showing properly, get rid of assets\res\fonts\sylfaen.ttf and replace it with SimSun, but rename it to sylfaen.ttf before placing it there. If you do this, I think that you should be able to do what you want.
 
thanks
but it still hava problem.
i replace the sylfaen.ttf with simsun,but &#x3400; still can not display in the game.
this is my exp.
Assets\XML\Text\CIV4GameTextInfos_Cities.xml
<Tag>TXT_KEY_CITY_NAME_NEW_YORK</Tag>
<English>&#x3400; New York</English>
but in the game,the city's name become "?New York"
when i use ie open this file,the character can display properly.
can you give me some suggestion?
 
i have notice the "sylfaen.ttf" also can be found in below directory.
c:\windows\font
Resource\Fonts
Resource\Civ4
is this cause the problem?
can i replace the "sylfaen" in Resource\Themes\Civ4\Civ4Theme_Common.thm with "simsun" to fix it?
 
Back
Top Bottom