The Joomla! Forum ™






Post new topic Reply to topic  [ 25 posts ] 
Author Message
PostPosted: Sat Mar 15, 2008 4:54 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Mar 15, 2008 4:20 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Sat Mar 15, 2008 5:16 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17557
Location: Omaha, NE
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:

Quote:
DEFINE('_ISO','charset=iso-8859-1');

to

Code:
DEFINE('_ISO','charset=UTF-8');
and you should be ok

Leo

_________________
Regards, Dave
http://www.kiwaniswest.org
http://www.huelsmann.us


Top
 Profile  
 
PostPosted: Sat Mar 15, 2008 7:03 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Mar 15, 2008 4:20 pm
Posts: 2
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 .


This version worked perfectly !

Thank you a lot for your fast and helpful answer ;)


Top
 Profile  
 
PostPosted: Mon Jun 02, 2008 10:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 08, 2008 8:14 am
Posts: 9
Hello all,

I got the same things but with search only, how can I fix this problem in search?


Top
 Profile  
 
PostPosted: Fri Aug 08, 2008 4:48 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Apr 20, 2006 7:17 am
Posts: 5
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
Code:
DEFINE('_ISO','charset=iso-8859-1');
to
Code:
DEFINE('_ISO','charset=UTF-8');
(mine was at line 421 of the file. Just search for _ISO to find it.
3. Save the file and it will work!


Top
 Profile  
 
PostPosted: Tue Sep 09, 2008 10:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 28, 2006 11:11 am
Posts: 6
Location: Beaufort, South Carolina
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

Code:
grep -rl $'\xEF\xBB\xBF' /home/username/public_html

and if you are comfortable with the VI editor they suggested this to clear it

open the file in vi
Code:
vi /path-to-file-name/file.php

remove the BOM:
Code:
set nobomb

save the file:
Code:
wq


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

_________________
Vision Technology Management
Web Design and Point of Sale
http://www.visiontm.com


Top
 Profile  
 
PostPosted: Fri Jan 30, 2009 8:49 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Jan 24, 2009 7:34 am
Posts: 2
Hello
I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.
Any ideas...

Thanks


Top
 Profile  
 
PostPosted: Fri Jul 24, 2009 9:43 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jul 24, 2009 8:35 am
Posts: 38
Arnonld wrote:
I have the same problem with Joomla 1.5, but can't find the DEFINE _ISO that was pointed here.


The same is happening to me... I don't find DEFINE_ISO... any idea about how to fix it??

_________________
http://www.alutec.no/


Top
 Profile  
 
PostPosted: Fri Jul 24, 2009 3:09 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16637
Location: **Translation Matters**
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.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 6:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 8:37 am
Posts: 7
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


Top
 Profile  
 
PostPosted: Tue Feb 23, 2010 8:33 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Aug 23, 2009 7:01 pm
Posts: 2
Just change your charset to UTF-8

Edit:
It is because of the editor Joomla developor or you use:

Quote:
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".


Top
 Profile  
 
PostPosted: Thu Mar 04, 2010 2:06 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 24, 2007 8:29 am
Posts: 26
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..

_________________
http://www.templatewebshop.com - Free Templates Box
http://www.bestscriptarchive.com - Download Scripts Free


Top
 Profile  
 
PostPosted: Thu Mar 04, 2010 1:17 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Aug 23, 2009 7:01 pm
Posts: 2
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" />


Top
 Profile  
 
PostPosted: Mon Oct 10, 2011 9:58 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Oct 10, 2011 9:33 pm
Posts: 1
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: viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Tue Oct 11, 2011 4:26 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16637
Location: **Translation Matters**
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.

It is not if the file has been manually edited and not saved with the correct encoding.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Nov 16, 2011 1:01 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Nov 16, 2011 12:00 am
Posts: 11
Location: In my chair
Quote:
It is not if the file has been manually edited and not saved with the correct encoding.


It is possible that the file is saved with the wrong encoding? Like if you edited the source files?

Because i remember having this problem with a non-joomla site, and basically i solved it by converting the files in notepad++.

_________________
Freelance Web-designer/developer
http://brugbart.com/ - My favorite webmaster resource


Top
 Profile  
 
PostPosted: Wed Nov 16, 2011 9:23 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16637
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Jan 17, 2012 4:35 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jan 17, 2012 4:08 pm
Posts: 7
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.
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.

_________________
http://facebookgameguides.com | http://www.pen-tests.com


Top
 Profile  
 
PostPosted: Fri Jan 27, 2012 8:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jan 27, 2012 7:53 am
Posts: 11
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.


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 12:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 31, 2011 4:55 am
Posts: 7
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

Code:
grep -rl $'\xEF\xBB\xBF' /home/username/public_html

and if you are comfortable with the VI editor they suggested this to clear it

open the file in vi
Code:
vi /path-to-file-name/file.php

remove the BOM:
Code:
set nobomb

save the file:
Code:
wq


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



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.


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 3:30 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 21, 2012 3:19 am
Posts: 13
Location: India
Is there any such problem with Arabic Language Pack ? i was thinking to install


Top
 Profile  
 
PostPosted: Mon Jul 02, 2012 5:16 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16637
Location: **Translation Matters**
Folks, joomla 1.0.x is now an antic. We do not support it anymore. Use 2.5.6.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Mon Oct 01, 2012 11:23 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Apr 02, 2011 12:41 pm
Posts: 1
bt-t wrote:
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


The same is happening to me... I don't find DEFINE_ISO... any idea about how to fix it??

same thing happening to me bt-t i have site with joomla facing same issues


Top
 Profile  
 
PostPosted: Mon Oct 29, 2012 6:26 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Oct 29, 2012 6:16 am
Posts: 1
I thought the char set is supposed to be UTF-8 by default.


Top
 Profile  
 
PostPosted: Tue Oct 30, 2012 7:39 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16637
Location: **Translation Matters**
ayunksyah wrote:
I thought the char set is supposed to be UTF-8 by default.

Not in the obsolete joomla 1.0.x

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group