Problem with accents (catalan)

zaharamh / 2009-11-22 10:44:27   

Hello,

I've recently installed indexhibit in the catalan version, but I seem to be having a problem with accents.

1. I already checked the database encoding (it's utf-8), besides, the problem appears only in the visualization of the page, but not in the administration part.

2. I don't think it is anything related to the template, since I just installed it and I am using the default ones.

Here's the link:
http://www.zaharamh.com

Here's what I'm seeing:
Grà cies i disculpeu les molèsties!

Here's what it should look like:
Gràcies i disculpeu les molèsties!

Thanks in advance for any suggestions as to how I can solve this.

Z.

Vaska A / 2009-11-22 12:50:34   

Did you have to change the database parts to be utf8? Did you check the database...the tables and the columns? It's not just one setting...

And then, because things are encoded wrong right now, you will need to re-input that info.

zaharamh / 2009-11-22 14:41:15   

I didn't have to change anything in the database, it already was using utf-8 by default.
Anyway, I don't think the problem is related to the database in any way, since I can see the accents all right inside of the administration part.
I guess I'll have to take a look at the template files or something.
Thank you anyway!

zaharamh / 2009-11-22 15:04:34   

Looks like this is the problem:

"The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation."
(Message given by the W3C Markup Validator)

I don't know exactly where to look for the first header sent, I am going to try but I'd appreciate if somebody who knew the workings of the file sistem could assist on that!

Thanks again
Vaska A / 2009-11-22 20:37:12   

Indexhibit, by default will get your output to utf8. If you check many of the millions of Indexhibit sites out there you will that this is the case.

I have a feeling that your host, are they in Britain?, is forcing output to iso-8859-1. Why would they do that? I've seen many British hosts do this...just a kind of default you have up there.

I believe you can force the behavior into utf8 with htaccess...assuming your host provides mod_rewrite.

Maybe one of these will work...

  1. AddDefaultCharset UTF-8
  2. AddType 'text/html; charset=UTF-8' html

I'm not much of an htaccess expert...if anybody else has some insight to this that would be good. But, I don't really see this being caused by Indexhibit directly...just my two cents.

zaharamh / 2009-11-22 23:27:46   

Ok. Thank you, and I am sorry if it's just my own problem :(

It doesn't look like my host is allowing me to change .htaccess settings, so that doesn't work either. What I find most strange though, is that I have a different page hosted in the same place:

http://www.zaharamh.com/index.html

Which seems to be encoded in utf-8. (Accents don't seem to work anyway, though)

So for the moment I am sticking with html entities.

Anyway, if somebody by chance has a suggestion as to a solution to this problem I will be most thankful.

Not that I am not thankful already for the useful help I've received! :D

Vaska A / 2009-11-22 23:30:57   

Zaha...send me a note with your ftp login info and I will try a very fast experiment...no promises I can make it work though...

contact [at] indexhibit [dot] org

Vaska A / 2009-11-24 08:20:22   

No idea...when I offer to help let me help before changing things. I really have no other ideas on this subject.

zaharamh / 2009-11-24 09:21:19   

Well, I'd already changed it when you offered to help, but thanks a lot anyway.

esaumell / 2010-01-15 22:04:24   

Hi all,

Not sure if related, I have a similar problem but only with meta tags. I'm trying to set keywords and description and i get:

  1. Mola ÔøΩs un estudi de disseny i comunicaciÔøΩ grÔøΩfica
  1. where it should be:
  2. Mola √©s un estudi de disseny i comunicaci√≥ gr√†fica

I'm using Catalan setup of lastest Indexhibit and have the problem both live and dev environments.

Tried changing charset to some values without exit

Any thoughts?

Edgar.

PD: Site is http://moladisseny.com/ mod_rewrite is on

esaumell / 2010-01-15 22:09:33   

Also just tried at dev environment with that in .htaccess without result:


Maybe one of these will work...

AddDefaultCharset UTF-8
AddType 'text/html; charset=UTF-8' html

esaumell / 2010-01-15 22:15:54   

Problem solved:

I changed the text encoding of my index.php at the text editor. From Western (MacOS Roman) to Unicode (UTF-8)

Anyway, thanks Indexhibit!!!

This thread has been closed, thank you.