Elxis CMS Forum

Support => Technical support => Topic started by: Farhad Sakhaei on September 04, 2007, 11:02:36

Title: XML wrong encoding
Post by: Farhad Sakhaei on September 04, 2007, 11:02:36
why some xml encoding are not UTF-8     ????

i checked them , they are :

banners.xml : iso-8859-1
contact.xml  : iso-8859-1
contact_items.xml : iso-8859-1
login.xml : iso-8859-1
templateDetails.xml : iso-8859-1

i had a problem with some xml packages of facileforms , they were iso-8859-1 too and i had problems for persian ...
should we convert them to UTF-8 ?
Title: Re: XML wrong encoding
Post by: Farhad Sakhaei on September 04, 2007, 11:18:57
also i found another one :
mambots\content\geshi\geshi.php  : line 392 :    var $encoding = 'ISO-8859-1';
Title: Re: XML wrong encoding
Post by: datahell on September 04, 2007, 12:02:33
By default all XML files have encoding utf-8. So, if you dont declare an encoding then is set to utf-8. The encoding in the XML installation file should be always set to utf-8 or dont set it at all. Some files are indeed have iso-8859-1, and this is from the "mambo days". We have already changed it to utf-8 in version 2008. But it does not affects Elxis even if you have it iso-8859-1. This encoding only affects your browser if you open XML directly with it. Elxis always sets encoding to utf-8 as it is the only valid encoding for Elxis.
Title: Re: XML wrong encoding
Post by: Farhad Sakhaei on September 04, 2007, 12:25:56
ok, i convert them to utf-8 ,
but i had problem with facileforms xml packages , so i changed them to utf-8 and my problem solved , but i have some problems in Rock'N'Roll dance contest registration sample of FacileForms
and also Rock'N'Roll dance contest partipicant list and Submit Content Preview
i mentioned them in this post :
https://forum.elxis.org/index.php?topic=199.msg7275#msg7275

the encoding of result is not correct encoding
Title: Re: XML wrong encoding
Post by: datahell on September 04, 2007, 13:46:52
Sorry, I have n't checked Facile Forms for compatibility with Elxis. I have n't even ever use it so I can not tell about it.

About Geshi: this is the declaration of the variable not it's running value. It's value should be updated to utf-8 after class initialization. But even if it is left as iso-8859-1 it does not affect formatted code as Geshi is a code highlighter (php, html, css etc) which is almost always written using latin-1 characters. To be sure I just modified Elxis 2008 source in order Geshi to have the utf-8 encoding by default.
Title: Re: XML wrong encoding
Post by: Farhad Sakhaei on September 04, 2007, 13:57:04
thank you ioannis