Site admin UTF-8/1252 problem

andersostberg

Joined: 2007-04-05
Posts: 8
Posted: Thu, 2007-04-05 22:08

Hi folks!

I'm setting up a UTF-8 encoded Joomla/Gallery2 combo and most of it works quite well now. There's just one annoying thing, browsing the gallery works fine but clicking site admin breaks the UTF-8 encoding for some reason and I can't figure out what causes this. I've included the beginning of the HTML that is generated with G2 as a component in Joomla's main window. As you can see from the bold text the Joomla template is UTF-8 but it looks like G2 has added a charset=windows-1252 which confuses the browser. Other pages of the embedded gallery show UTF-8 in both positions.

Anyone have an idea where this comes from?

Thanks,
Anders

--------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?xml version="1.0" encoding="utf-8"?><HTML><HEAD><TITLE>AÖ Bild - Gallery Site Administration</TITLE>
<META http-equiv=Content-Language content=en-us>
<META content="Joomla - the dynamic portal engine and content management system"
name=description>
<META content="Joomla, joomla" name=keywords>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<META content="index, follow" name=robots><LINK
href="AÖ Bild - Gallery Site Administration_files/gallery.css" type=text/css
rel=stylesheet><LINK
href="AÖ Bild - Gallery Site Administration_files/theme.css" type=text/css
rel=stylesheet>
<SCRIPT src="AÖ Bild - Gallery Site Administration_files/BlockToggle.js"
type=text/javascript></SCRIPT>
<LINK href="-URL deleted-/images/favicon.ico" rel="shortcut icon">
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="AÖ Bild - Gallery Site Administration_files/template_css.css"
type=text/css rel=stylesheet></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
...
--------------------------------------------------

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-04-06 00:56

> but it looks like G2 has added a charset=windows-1252 which confuses the browser.

that's not g2. that must be joomla, joomla's g2 module or your code.

general note: all g2 html tags are lower-case.

sidenote: the html charset isn't the only thing that counts.
the http content-type / charset counts as well.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
andersostberg

Joined: 2007-04-05
Posts: 8
Posted: Fri, 2007-04-06 07:39

OK, thanks! I'll ask on the Joomla side too and see if someone has come across this.