PDA

View Full Version : Problems with spanish characters


Sades
08-02-2010, 06:47 PM
Hello again i just upgraded to get this nice boss thing it does the search but the site im working with is in spanish and all the characters are mess up

example on the search the word relación is shown on the search like this relación and i dont see any where how to fix it my page starts with


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

And my database is set to latin1_general_ci all the content shows fine on every page less when i do a search need help to fix this.

Jason Byrnes
08-03-2010, 08:31 AM
try using the utf-8 character set:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Sades
08-03-2010, 09:22 AM
The problem with using utf-8 is that i would first have to change even the manager and database colliation and also i have found a lot of problems with utf-8 and using spanish but will try.

Jason Byrnes
08-03-2010, 09:52 AM
I'm not suggesting utf-8 for the database collation, only in the meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Sades
08-09-2010, 09:40 PM
Thank you Jason for your response i did what you suggested the search added the acent and special character but the rest of the site broke the special characters so i had to change the collition in the database and on every single page, the good point it is under test so the end user of the site has not added any content yet but now everything is under utf-8, any users that still use old versions of mozilla or IE like IE6 or 5 will get javascript errors on dependant drop down list but on this site i dont have any dependant drop down box dont work with utf-8 on old version browsers new version dont have that problem.

Jason Byrnes
08-10-2010, 07:22 AM
Ok, glad to hear it is working.