C2C Italian translation

Whom can I kill for encoding errors in Assets\Modules\Custom_Religions\Sikh\Sikh_CIV4GameText.xml in the Italian translationl?
 
That, the game loads does not mean everything is correct. Many "XML readers" including this in c2c do not check, if the encoding is ok. XML by default should be encoded with UTF-8. Open the file in Notepad++, switch encoding to UTF8 without BOM and correct all black fields.
 
so something like this is correct (see the pic)? also what do you mean by "black fields"? I changed the encoding, but other than that nothing changed
 

Attachments

  • codifica UTF.jpg
    codifica UTF.jpg
    203.5 KB · Views: 63
Take the file I pointed. The problem are national letters. English letters will be correct in both ASCII and UTF8 encodings.
 
So, what I have to do is basically to replace characters like à,è,ò and so on with something like "& #224;" (without the space inside) and so on?
No. Switch to UTF8 without BOM and replace black fields with ordinary à,è,ò. Then save. Notepad++ will know the encoding is different and will put proper utf8 codes for those characters, not the ASCII ones.
 
There is also a convert to UTF-8 without BOM

34e6TJ7.png
 
There is also a convert to UTF-8 without BOM
It can be unsafe. If there is another text in the file, which contain specific utf-8 characters, like there is already German translation with ö which is already utf8, those symbols will become corrupted.
 
sorry but I'm still a bit confused on what to do.

How exactly can I switch the encoding of a file? I tried it the way Mr Azure said (both convert to UTF-8 and Encode in UTF-8) and then I saved, but after I reloaded the enconding was still ANSI.

Or do I have to change

<?xml version="1.0" encoding="ISO-8859-1"?>

to

<?xml version="1.0" encoding="UTF-8"?> ?
 
If you are changing the encoding to UTF8 without BOM, editors may be not able to distinguish it from ASCII. -- Especially if there is no national letters. Without national letters UTF8 without BOM and ASCII are identical.

You may put <?xml version="1.0" encoding="UTF-8"?> -- it is optional. And don't use "convert to UTF-8", just switch to it and correct the black places. The conversion can break national letters in other translations, which are already in an xml.
 
Another set of translations done

The encoding is UTF-8 without BOM, from now on I will always change the encoding in the files I translate. These files are all in DH's folder, I just haven't translated the files that are not actually working in the game (for example, from Sevo_FacesofGod)
 

Attachments

@Hale_9204 According to the new validator program there are the following errors in the Italian translations of my modules you recently did.
Caveman2Cosmos XML Validator 1.2 by Alberts2
-----------------------------------


-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Units\Entertainer\Entertainer_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Units\Entertainer\Entertainer_CIV4GameText.xml:24,29: Invalid character in the given encoding. Line 24, position 29.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4GameText.xml:76,76: Invalid character in the given encoding. Line 76, position 76.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Bull_Leaping\Bull_Leaping_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Bull_Leaping\Bull_Leaping_CIV4GameText.xml:39,32: Invalid character in the given encoding. Line 39, position 32.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Labyrinth\Labyrinth_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Labyrinth\Labyrinth_CIV4GameText.xml:21,167: Invalid character in the given encoding. Line 21, position 167.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Ntl_Library_Service\NLS_Civ4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Custom_Wonders\Ntl_Library_Service\NLS_Civ4GameText.xml:36,90: Invalid character in the given encoding. Line 36, position 90.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Buildings.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Buildings.xml:10,22: Invalid character in the given encoding. Line 10, position 22.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_GStatesman.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_GStatesman.xml:7,22: Invalid character in the given encoding. Line 7, position 22.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_IP.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_IP.xml:13,23: Invalid character in the given encoding. Line 13, position 23.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Outcomes.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Outcomes.xml:12,31: Invalid character in the given encoding. Line 12, position 31.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Units.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Units.xml:94,156: Invalid character in the given encoding. Line 94, position 156.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Great_Hunter_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Great_Hunter_CIV4GameText.xml:25,14: Invalid character in the given encoding. Line 25, position 14.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\SA_Totems_Buildings_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\SA_Totems_Buildings_CIV4GameText.xml:25,61: Invalid character in the given encoding. Line 25, position 61.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Buildings_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Buildings_CIV4GameText.xml:93,12: Invalid character in the given encoding. Line 93, position 12.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Outcomes_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Outcomes_CIV4GameText.xml:13,62: Invalid character in the given encoding. Line 13, position 62.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Pedia_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Pedia_CIV4GameText.xml:14,19: Invalid character in the given encoding. Line 14, position 19.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Promotion_CIV4GameText.xml
-----------------------------------
Validation complete with 0 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Strategy_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Strategy_CIV4GameText.xml:14,19: Invalid character in the given encoding. Line 14, position 19.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Unit_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Unit_CIV4GameText.xml:45,12: Invalid character in the given encoding. Line 45, position 12.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------
---------------------
-----------------------------------
Validating Caveman2Cosmos\Assets\Modules\DancingHoskuld\SuperForts\SuperForts_CIV4GameText.xml
-----------------------------------
Caveman2Cosmos\Assets\Modules\DancingHoskuld\SuperForts\SuperForts_CIV4GameText.xml:20,29: Invalid character in the given encoding. Line 20, position 29.
-----------------------------------
Validation complete with 1 error(s)​
 
Thanks. I could not see why they were errors but then I am dyslexic and sometime have trouble telling the difference between b, d, p and q.
 
Thanks. I could not see why they were errors but then I am dyslexic and sometime have trouble telling the difference between b, d, p and q.

I get them when i look at Notepad ++ but not with regular Notepad.:crazyeye:
 
I get this then i try to open files with the recently added translations. Also the Xerces Parser doesn't like this at all i can't even start the game. There are Windows-1252 characters in those files they must be converted to Utf8. I mean not the whole files they are already Utf8 just some characters are wrong.

Cannot open the specified file: Got a character encoding exception.
File encoding (UTF8) does not support all characters from the current file.
To ignore these errors or to replace invalid characters follow the link below to change the "Encoding errors handling" option value from REPORT to IGNORE or REPLACE.
 
Back
Top Bottom