Advertisement
Weird chars on top of my site ()
Moderator: General Support Moderators
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Mar 15, 2008 4:20 pm
Weird chars on top of my site ()
Hello,
I've just installed Joomla 1.0.15 (french version).
the charset is set as iso-8859-1 and my browser also.
The problem is :
When i display the site all chars like : é è à etc appears good but i got weird characters on the top : 
They disappear if i change the encoding chars to utf-8, but in this case, the chars like é è à etc.. don't look good anymore.
I'm searching for 2 weeks now how to solve this problem but i can't find any help which solve this.
Thank you for your help.
Dèce
PS: here a SS to help : http://img155.imageshack.us/img155/8913 ... bugbc8.png
I've just installed Joomla 1.0.15 (french version).
the charset is set as iso-8859-1 and my browser also.
The problem is :
When i display the site all chars like : é è à etc appears good but i got weird characters on the top : 
They disappear if i change the encoding chars to utf-8, but in this case, the chars like é è à etc.. don't look good anymore.
I'm searching for 2 weeks now how to solve this problem but i can't find any help which solve this.
Thank you for your help.
Dèce
PS: here a SS to help : http://img155.imageshack.us/img155/8913 ... bugbc8.png
Advertisement
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Weird chars on top of my site ()
JimDeLaHunt wrote: Yes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.
Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.
The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .
leolam wrote: language file (not template or index or anything else:
change:
toDEFINE('_ISO','charset=iso-8859-1');
and you should be okCode: Select all
DEFINE('_ISO','charset=UTF-8');
Leo
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Mar 15, 2008 4:20 pm
Re: Weird chars on top of my site ()
This version worked perfectly !dhuelsmann wrote:JimDeLaHunt wrote: Yes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.
Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.
The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .
Thank you a lot for your fast and helpful answer

-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Mar 08, 2008 8:14 am
Re: Weird chars on top of my site ()
Hello all,
I got the same things but with search only, how can I fix this problem in search?
I got the same things but with search only, how can I fix this problem in search?
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Apr 20, 2006 7:17 am
Re: Weird chars on top of my site ()
That fixes the problem immediately. To summarize:
1. Find your language file. Since I'm using English, I found english.php, which is inside the language directory in your joomla installation. Make a backup of it before you edit it.
2. Change to (mine was at line 421 of the file. Just search for _ISO to find it.
3. Save the file and it will work!
1. Find your language file. Since I'm using English, I found english.php, which is inside the language directory in your joomla installation. Make a backup of it before you edit it.
2. Change
Code: Select all
DEFINE('_ISO','charset=iso-8859-1');
Code: Select all
DEFINE('_ISO','charset=UTF-8');
3. Save the file and it will work!
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Mar 28, 2006 11:11 am
- Location: Beaufort, South Carolina
- Contact:
Re: Weird chars on top of my site ()
We also had the problem with those characters showing up. We tried the suggestion of changing the Character Set, unfortunately all it did was hide the characters, but they still took up space on the pages (pushed menus, titles, etc down) plus the character set had other unwanted side effects in certain components displaying apostrophes and commas incorrectly.
The problem was indeed the BOM as explained earlier. The great people at Rochen hosting found the file for us that was causing the problems, corrected it by removing the marker and the problems went away. In our case it was the Virtuemart language file that we had edited.
For those with shell access here is a little command provided by Rochen to find all files with the BOM set in the public_html directory - be sure to change it to what your correct path on your server is
and if you are comfortable with the VI editor they suggested this to clear it
open the file in vi
remove the BOM:
save the file:
For those without shell access and using windows, ftp download the most likely php files you edited, open them in notepad, do a file save-as and be sure to set the encoding to ANSI (at the bottom of the save-as window), then upload the files back again.
I hope this helps, I know we spent more time on it than we wanted
Harry
The problem was indeed the BOM as explained earlier. The great people at Rochen hosting found the file for us that was causing the problems, corrected it by removing the marker and the problems went away. In our case it was the Virtuemart language file that we had edited.
For those with shell access here is a little command provided by Rochen to find all files with the BOM set in the public_html directory - be sure to change it to what your correct path on your server is
Code: Select all
grep -rl $'\xEF\xBB\xBF' /home/username/public_html
open the file in vi
Code: Select all
vi /path-to-file-name/file.php
Code: Select all
set nobomb
Code: Select all
wq
I hope this helps, I know we spent more time on it than we wanted
Harry
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Jan 24, 2009 7:34 am
Re: Weird chars on top of my site ()
Hello
I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.
Any ideas...
Thanks
I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.
Any ideas...
Thanks
-
- Joomla! Apprentice
- Posts: 38
- Joined: Fri Jul 24, 2009 8:35 am
- Contact:
Re: Weird chars on top of my site ()
The same is happening to me... I don't find DEFINE_ISO... any idea about how to fix it??Arnonld wrote: I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.
- infograf768
- Joomla! Master
- Posts: 19128
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Weird chars on top of my site ()
DEFINE_ISO is NOT to use in 1.5.
For 1.5 issues, please post in the 1.5 forums.
Usually, the extraneous characters mean that the index.php of your template (or another php file you edited) contains some non-ASCII chars and has to be saved as utf8 NO BOM, which you can do by opening the file in Notepad++, Babelpad on Windows, TextWrangler on Macintosh.
For 1.5 issues, please post in the 1.5 forums.
Usually, the extraneous characters mean that the index.php of your template (or another php file you edited) contains some non-ASCII chars and has to be saved as utf8 NO BOM, which you can do by opening the file in Notepad++, Babelpad on Windows, TextWrangler on Macintosh.
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: 7
- Joined: Tue Feb 03, 2009 8:37 am
Re: Weird chars on top of my site ()
I am having the same problem in the site.. i cant see the index page at all..
tried everything but cant get it to work..
Need Help urgently..
I dont have shell access..
http://indiansagiarchery.com
tried everything but cant get it to work..
Need Help urgently..
I dont have shell access..
http://indiansagiarchery.com
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Aug 23, 2009 7:01 pm
Re: Weird chars on top of my site ()
Just change your charset to UTF-8
Edit:
It is because of the editor Joomla developor or you use:
Edit:
It is because of the editor Joomla developor or you use:
if you are using Notepad, it may be as simple as making sure you are saving it using "ANSI" encoding during the Save As process, rather than "UTF-8" (there is a dropdown in the lower left hand corner of the save as box, just below "Save as Type".
-
- Joomla! Apprentice
- Posts: 26
- Joined: Sat Feb 24, 2007 8:29 am
- Contact:
Re: Weird chars on top of my site ()
I got the  too on http://www.allinfo.ro/ template too and i fix it by changing some lines into the template code. If any of you have that template just let me know and I'll tell you the solution.
I should mention that my charset was on UTF-8 any change doesn't helped me..
I should mention that my charset was on UTF-8 any change doesn't helped me..
http://www.templatewebshop.com - Free Templates Box
http://www.bestscriptarchive.com - Download Scripts Free
http://www.bestscriptarchive.com - Download Scripts Free
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Aug 23, 2009 7:01 pm
Re: Weird chars on top of my site ()
Even saving the file again (save as) then select to save it as only UTF-8 (without BOM)?
And jus to be sure, in your head:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
And jus to be sure, in your head:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Oct 10, 2011 9:33 pm
Re: Weird chars on top of my site ()
Hasn't anybody found a fix to the problem yet it seems no one has responded with any positive feed back yet. I thought the charset is supposed to be UTF-8 by default.
Signature, see forum rules: http://forum.joomla.org/viewtopic.php?f=8&t=65
- infograf768
- Joomla! Master
- Posts: 19128
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Weird chars on top of my site ()
It is not if the file has been manually edited and not saved with the correct encoding.chesterlrivas wrote:Hasn't anybody found a fix to the problem yet it seems no one has responded with any positive feed back yet. I thought the charset is supposed to be UTF-8 by default.
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: 11
- Joined: Wed Nov 16, 2011 12:00 am
- Location: In my chair
- Contact:
Re: Weird chars on top of my site ()
It is possible that the file is saved with the wrong encoding? Like if you edited the source files?It is not if the file has been manually edited and not saved with the correct encoding.
Because i remember having this problem with a non-joomla site, and basically i solved it by converting the files in notepad++.
- infograf768
- Joomla! Master
- Posts: 19128
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Weird chars on top of my site ()
As long as you edit the files with a UTF8-aware editor as Notepad ++ indeed on Windows, and save the file as UTF8 NO BOM, all shall be OK.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- whiz16
- Joomla! Apprentice
- Posts: 7
- Joined: Tue Jan 17, 2012 4:08 pm
Re: Weird chars on top of my site ()
I've tried using Notepad++ to save file as UTF and it did work. Been searching for days for solutions, didn't know it was a problem in "language" encoding of the files. Glad to solve the strange chars showing up.infograf768 wrote:As long as you edit the files with a UTF8-aware editor as Notepad ++ indeed on Windows, and save the file as UTF8 NO BOM, all shall be OK.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Jan 27, 2012 7:53 am
- Contact:
Re: Weird chars on top of my site ()
May be you faced this problem when you made a mistake to edit the file with UTF-8
i have faced quite similar problem but after changing charset to UTF-8
it solved. So try to edit it correctly.
i have faced quite similar problem but after changing charset to UTF-8
it solved. So try to edit it correctly.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Aug 31, 2011 4:55 am
Re: Weird chars on top of my site ()
HarryKare wrote:We also had the problem with those characters showing up. We tried the suggestion of changing the Character Set, unfortunately all it did was hide the characters, but they still took up space on the pages (pushed menus, titles, etc down) plus the character set had other unwanted side effects in certain components displaying apostrophes and commas incorrectly.
The problem was indeed the BOM as explained earlier. The great people at Rochen hosting found the file for us that was causing the problems, corrected it by removing the marker and the problems went away. In our case it was the Virtuemart language file that we had edited.
For those with shell access here is a little command provided by Rochen to find all files with the BOM set in the public_html directory - be sure to change it to what your correct path on your server is
and if you are comfortable with the VI editor they suggested this to clear itCode: Select all
grep -rl $'\xEF\xBB\xBF' /home/username/public_html
open the file in viremove the BOM:Code: Select all
vi /path-to-file-name/file.php
save the file:Code: Select all
set nobomb
For those without shell access and using windows, ftp download the most likely php files you edited, open them in notepad, do a file save-as and be sure to set the encoding to ANSI (at the bottom of the save-as window), then upload the files back again.Code: Select all
wq
I hope this helps, I know we spent more time on it than we wanted
Harry
Hello Harry, please can you help me out here as I'm currently facing the same issue after installing the latest version of Virtuemart. I have already uninstalled my VM installation but the chars are still showing up.
Please help out anyway. Thanks for your time.
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sat Apr 21, 2012 3:19 am
- Location: India
- Contact:
Re: Weird chars on top of my site ()
Is there any such problem with Arabic Language Pack ? i was thinking to install
- infograf768
- Joomla! Master
- Posts: 19128
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Weird chars on top of my site ()
Folks, joomla 1.0.x is now an antic. We do not support it anymore. Use 2.5.6.
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! Fledgling
- Posts: 1
- Joined: Sat Apr 02, 2011 12:41 pm
Re: Weird chars on top of my site ()
same thing happening to me bt-t i have site with joomla facing same issuesbt-t wrote:The same is happening to me... I don't find DEFINE_ISO... any idea about how to fix it??Arnonld wrote: I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.http://lifestyle.alrazaak.com/Mehndidesign.html
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Oct 29, 2012 6:16 am
- Contact:
Re: Weird chars on top of my site ()
I thought the char set is supposed to be UTF-8 by default.
- infograf768
- Joomla! Master
- Posts: 19128
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Weird chars on top of my site ()
Not in the obsolete joomla 1.0.xayunksyah wrote:I thought the char set is supposed to be UTF-8 by default.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
Advertisement