Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

spanish products e categories doesnt recognize ñ or á,é,í,ó, ú


avatarsoul

Recommended Posts

It would appear that you're mixing encodings. Are you entering the text in UTF-8, but your pages are displaying in Latin-1? Maybe your database is UTF-8, but you're using the wrong Spanish language pack (Latin-1 instead of UTF-8 version). Anyway, carefully check your database encoding, your language support file encoding (including any explicit declaration of locale or charset within spanish.php), and what the declared output page encoding is. If it's all UTF-8, check to see if your host is overriding your encoding (charset) declaration and forcing Latin-1 (ISO-8859-1). You can do this from your browser by looking in View > Character Set (or something similar) and seeing if it says "Latin-1" or "Western European". Does clicking on UTF-8 correct the character display? If so, report this to your host.

Link to comment
Share on other sites

It might be diagnostically useful to go to

 

includes/template_top.php

 

to change

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />

 

to

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Link to comment
Share on other sites

If "charset" is currently ISO-8859-1 (or Latin-1), that would show that you've got mixed encodings somewhere (data in UTF-8, page being presented in Latin-1). Most likely, I would guess, would be in spanish.php (setting to Latin-1). That would mean, though, that all the accented characters in your language support files would be in Latin-1, and would not be correct if you forced the charset to be UTF-8 (you'll get a bunch of ?-in-diamond glyphs). If your database is UTF-8 (which it should be for osC 2.3), there should be a UTF-8 Spanish language support file set.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...