Jump to content



- - - - -

Portuguese chars issues

charset

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1   ajgcardoso

ajgcardoso
  • Members
  • 6 posts

Posted 06 August 2012 - 06:11 PM

Hello,

I just installed a oscommerce store and a portuguese language module.

First I had problems with the desciptions of the products because the portuguese chars were being converted: â, ç, ã. ....

I had to change the charset in the portugues.php file to:

// charset for web pages and emails
define('CHARSET', 'utf-8');

Now the the text inserted via admin panel are ok, but the core text, like titles in boxes are not appearing proplerly, and before my change were ok: Coment�rios and not Comentários.

Can you please help to solve this issue?

store url: capas-iphone.pt

Thanks,
António

#2   willer2k

willer2k
  • Members
  • 46 posts

Posted 06 August 2012 - 10:28 PM

@ajgcardoso
Oh dude, I had the exact same issue like a couple of days ago, check out the topic I posted, biancoblu gave me the solution to the issue.
http://forums.oscommerce.com/topic/388528-french-charset-issue/

Basicly, if you chose utf-8, then have all your php files encripted using utf-8 (without BOM), database has to be utf-8.

The best way to do it, is to use HTML entities thou, takes a little longer, but it will never fail regardless of your php encoding, database ect.

So instead of typing out "Comentários", type in "Comentários" and it will display as "Comentários" no matther what.:
Check out this link for a converter:
http://htmlentities.net/