Cache - Character Set Problem
Moderator: General Support Moderators
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Sep 18, 2007 9:33 pm
Cache - Character Set Problem
Hi all
when I use german umlauts öäüß in the text or in article name - they will be displayed correctly but just once. When I reload the page the text is crippled!
As soon as I delete the cache... display is correct ... after reaload is displays garbage again.
There seems to be a code page problem with the cache ... (or my configuration...)
Any suggestions what to change? Can anybody help.
Thank you.
RS
when I use german umlauts öäüß in the text or in article name - they will be displayed correctly but just once. When I reload the page the text is crippled!
As soon as I delete the cache... display is correct ... after reaload is displays garbage again.
There seems to be a code page problem with the cache ... (or my configuration...)
Any suggestions what to change? Can anybody help.
Thank you.
RS
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Cache - Character Set Problem
Do you have an url we could check?
What is your system info?
Which version of Joomal do you use?
Please give some information...
What is your system info?
Which version of Joomal do you use?
Please give some information...
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Tue Mar 04, 2008 2:47 pm
Re: Cache - Character Set Problem
I have the same problem. I'm making a bilingual site with finnish and english.
The following finnish article does not show correctly after reload
http://www.funkymonkey.fi/Joomla/index. ... ?task=view
--
Tero Pernu
The following finnish article does not show correctly after reload
http://www.funkymonkey.fi/Joomla/index. ... ?task=view
--
Tero Pernu
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Sep 18, 2007 9:33 pm
Re: Cache - Character Set Problem
Thanks for your replies.
I ran 2 installation one with a clean 1.5 in wiampplite on my local windows machine and one on my website. Since it looked sooo obviously buggy, but nobody else ran into this problem before, I checked into code pages.
Some of them had been altered "mysteriously" to swedish_ci (just a guess: i think one component caused that problem) after manually changing collations in mysql back to UTF8_general_ci it works well and the caracter set problems are gone in the live system.
All right this does not explain any problems with a fresh & clean 1.5 installation in winampplite. I deleted the database, created a new one - making sure to select utf8_general_ci collation (probably finnish could use the same one - but swedish and estonian seems to be different) and reistalled joomla 1.5 stable.
What can I say - if you do it right it works.
Hope this helps a little.
cu
rs
I ran 2 installation one with a clean 1.5 in wiampplite on my local windows machine and one on my website. Since it looked sooo obviously buggy, but nobody else ran into this problem before, I checked into code pages.
Some of them had been altered "mysteriously" to swedish_ci (just a guess: i think one component caused that problem) after manually changing collations in mysql back to UTF8_general_ci it works well and the caracter set problems are gone in the live system.
All right this does not explain any problems with a fresh & clean 1.5 installation in winampplite. I deleted the database, created a new one - making sure to select utf8_general_ci collation (probably finnish could use the same one - but swedish and estonian seems to be different) and reistalled joomla 1.5 stable.
What can I say - if you do it right it works.
Hope this helps a little.
cu
rs
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Cache - Character Set Problem
utf8_general_ci collation works for all languages as far as I know.
You are all advised to upgrade your installs.
1.5.1 has been available for a while and 1.5.2 should be released quite soon.
You are all advised to upgrade your installs.
1.5.1 has been available for a while and 1.5.2 should be released quite soon.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 8
- Joined: Tue Mar 04, 2008 2:47 pm
Re: Cache - Character Set Problem
My problem is solved.
The service provider checked the problem and said it was caused by an charset of iso-8859-15 in the php settings. So my page's meta tag send a different, utf8, charset to the server and the problem appeared. The service provider disabled the charset feature all together and no the browser is only reading my meta tag of utf-8.
Work fine. ... for now
ps. i have the 1.5.1 Looking forward to the 1.5.2
--
Tero
The service provider checked the problem and said it was caused by an charset of iso-8859-15 in the php settings. So my page's meta tag send a different, utf8, charset to the server and the problem appeared. The service provider disabled the charset feature all together and no the browser is only reading my meta tag of utf-8.
Work fine. ... for now
ps. i have the 1.5.1 Looking forward to the 1.5.2
--
Tero
- rufuz
- Joomla! Explorer
- Posts: 303
- Joined: Wed May 09, 2007 10:07 am
- Location: Rome
- Contact:
Re: Cache - Character Set Problem
I found 2 solutions to the problem:
1. changed default charset in php.ini to utf8_general_ci , then added
in index.php of your template
2. the other solution is a hack, but could be useful I guess if you cannot modify php.ini
add this as first line in index.php in main dir:
reference: http://forum.joomla.org/viewtopic.php?f ... 6#p1292426
I'm testing, but it seems to me both solutions work
bye
ricc.
1. changed default charset in php.ini to utf8_general_ci , then added
Code: Select all
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
2. the other solution is a hack, but could be useful I guess if you cannot modify php.ini
add this as first line in index.php in main dir:
Code: Select all
<?php header("Content-Type: text/html; charset=UTF-8", true); ?>
I'm testing, but it seems to me both solutions work
bye
ricc.
-
- Joomla! Apprentice
- Posts: 29
- Joined: Mon Aug 24, 2009 6:22 am
Re: Cache - Character Set Problem
I've got a solution:
just add the following line to the .htaccess file
This solved my problem!
just add the following line to the .htaccess file
Code: Select all
AddDefaultCharset utf-8
-
- Joomla! Enthusiast
- Posts: 202
- Joined: Mon Jan 18, 2010 12:43 am
Re: Cache - Character Set Problem
I did, but page couldn't open, after deleted.rufuz wrote:I found 2 solutions to the problem:
1. changed default charset in php.ini to utf8_general_ci , then added
in index.php of your templateCode: Select all
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head>
2. the other solution is a hack, but could be useful I guess if you cannot modify php.ini
add this as first line in index.php in main dir:reference: http://forum.joomla.org/viewtopic.php?f ... 6#p1292426Code: Select all
<?php header("Content-Type: text/html; charset=UTF-8", true); ?>
I'm testing, but it seems to me both solutions work
bye
ricc.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Tue Aug 03, 2010 11:49 am
Re: Cache - Character Set Problem
Hi
I tried all abow except changing the php.ini since we rent webspace at a web host, so tht is not an option.
We still have problems showing Eutopeans characters especially åäö and ÅÄÖ. The problem seam to be when we read data from the data base. Everything else seem to use &xxxx; HTML characters for åäö. The problem begin after reuploading the site after making changes due to a fishing attack we had. Some php scripts was changed and added that we had to remove. Bu tto my knowledge I can't imagine I changed any thing with the language. That is unless the hacker removed it. BTW there was no backup when I strated to work on the problem.
Ony other suggestion.
I tried all abow except changing the php.ini since we rent webspace at a web host, so tht is not an option.
We still have problems showing Eutopeans characters especially åäö and ÅÄÖ. The problem seam to be when we read data from the data base. Everything else seem to use &xxxx; HTML characters for åäö. The problem begin after reuploading the site after making changes due to a fishing attack we had. Some php scripts was changed and added that we had to remove. Bu tto my knowledge I can't imagine I changed any thing with the language. That is unless the hacker removed it. BTW there was no backup when I strated to work on the problem.
Ony other suggestion.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Dec 09, 2008 12:38 am
Re: Cache - Character Set Problem
This worked for me too... I love a one line / one file fix. Good Work!satzdom wrote:I've got a solution:
just add the following line to the .htaccess file
This solved my problem!Code: Select all
AddDefaultCharset utf-8