Elxis CMS Forum

Support => Language => Topic started by: catflap on September 24, 2007, 22:01:35

Title: How to get turkish language to display properly [SOLVED]
Post by: catflap on September 24, 2007, 22:01:35
I am just trying out elxis as am having great problems with joomla and so far everything looks good except for the lack of components and modules but thats another issue. The problem i have is i have written something in turkish which when the site is set to English displays perfectly but when i change to turkish the accents used no longer appear and are replaced by square boxes or question marks anyone know how to get it to display correctly.
Title: Re: how to get turkish language to display properly
Post by: Ivan Trebješanin on September 24, 2007, 22:11:30
That is odd... try to find out more about page encoding, and check if your lang file is UTF-8 encoded, and is your DB collation set to UTF8_general_ci.
Title: Re: how to get turkish language to display properly
Post by: catflap on September 24, 2007, 22:56:51
thank you for your quick reply i have checked and both are utf8 encoded where can i get info on page encoding ?
Title: Re: how to get turkish language to display properly
Post by: Ivan Trebješanin on September 24, 2007, 23:36:28
If you are using firefox (I always do) you can right click and display page info. But more important is you DB... is it utf8_general_ci?
Title: Re: how to get turkish language to display properly
Post by: datahell on September 24, 2007, 23:46:40
Also check your template's encoding. If is it hardcoded something else than utf-8. I think that most probably, as Ivan mentioned, it is a database issue. It is not setup well. Post a link here if you wish to check it.
Title: Re: how to get turkish language to display properly
Post by: catflap on September 25, 2007, 00:26:53
the template is not hard encoded and database is set for UTF8_general_ci.

here is a sample of the text in english page

Velilerimden ve öğrencilerimden aldığım maiilerden esinlenerek hazırlamış olduğum bu sitede Türkçe AS ve A Level sınavlarına yönelik çalışmalar bulacaksınız.

the same text when switched to turkish

Velilerimden ve �?rencilerimden ald???m maiilerden esinlenerek haz?rlam?? oldu?um bu sitede T�rk�e AS ve A Level s?navlar?na y�nelik �al??malar bulacaks?n?z.�

by the way i am using ie7 and also opera browsers

you can also see it at www.turkish-studies.co.uk/elix (http://www.turkish-studies.co.uk/elix)
Title: Re: how to get turkish language to display properly
Post by: Ivan Trebješanin on September 25, 2007, 00:43:15
When you swich to Turkish your page encoding changes from UTF-8 to iso-8859-9, so it is clearly a template problem, or language problem. I have downloaded official Turkish language from elxis.org, and it's OK. If you are not using some custom made laguage, it brings us back to your template. Try some other template...
Title: Re: how to get turkish language to display properly
Post by: catflap on September 25, 2007, 01:34:17
thanks again for your reply.
I am also using the official turkish langauge and have now changed the template to utf8 encoding still the same also tried the 3 templates that come with elxis and they display the same way.
so where do i go from here.
Title: Re: how to get turkish language to display properly
Post by: catflap on September 25, 2007, 01:47:10
Update Now working found out that the turkish language file i downloaded from the elxis directory had a line it it saying iso encoding and set to iso-8859-9 after changing it to utf8 working great now thanks for all your help
Title: Re: How to get turkish language to display properly [SOLVED]
Post by: Ivan Trebješanin on September 25, 2007, 19:14:21
Hmmm, very interesting. I checked if turkish language was utf-8 encoded, and it was. I don't know why would anyone set encoding to iso after translating everything as utf-8 ??? Anyway, this has to be corrected in turkish laguage available at elxis.org.