Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Icelandic characters not showing up correctly


gunnl

Recommended Posts

Posted

Hi folks,

 

When I recive an email from contact_us.php Icelandic characters in the 'From' & 'Subject' lines are not showing up correct. Ie. 'á', 'ð' becomes 'X' etc.

 

Can I configure the shop to fix this? If so, what file and line do I need to change?

 

Cheers

Gunnlaugur

Regards

Gunnlaugur

Posted

have you changed your language in the language.php file.

 

If you used the english language to translate you would go to includes/languages.english.php and on line 19

 

@setlocale(LC_TIME, 'en_US.ISO_8859-1'); and change your language from english to your language code.

 

 

Hi folks,

 

When I recive an email from contact_us.php Icelandic characters in the 'From' & 'Subject' lines are not showing up correct. Ie. 'á', 'ð' becomes 'X' etc.

 

Can I configure the shop to fix this? If so, what file and line do I need to change?

 

Cheers

Gunnlaugur

Posted
have you changed your language in the language.php file.

 

If you used the english language to translate you would go to includes/languages.english.php and on line 19

 

@setlocale(LC_TIME, 'en_US.ISO_8859-1'); and change your language from english to your language code.

 

I tried to change the following language parameters without any luck

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

 

The values I tried,

is_IS.iso88591

is_IS.ISO8859-1

is_IS.ISO_8859-1

is_IS.ISO8859-1

 

Any other suggestions?

 

Cheers

Gunnlaugur

Regards

Gunnlaugur

Posted

I tried to change the bold values,

 

@setlocale(LC_TIME, 'en_US.ISO_8859-1');

 

define('CHARSET', 'iso-8859-1');

 

These are the values I tried,

is_IS.iso88591

is_IS.ISO8859-1

is_IS.ISO_8859-1

is_IS.ISO8859-1

 

Any other suggestions?

 

Cheers

Gunnlaugur

Regards

Gunnlaugur

Posted

One more time. YOU ARE NOT SETTING YOUR LANGUAGE!

 

 

en_US is for english

 

what is your LANGUAGE code? you will just have to do a search on the internet if you do not know your language code as it would seem no one here knows what your LANGUAGE CODE IS.

Posted
One more time. YOU ARE NOT SETTING YOUR LANGUAGE!

en_US is for english

 

what is your LANGUAGE code? you will just have to do a search on the internet if you do not know your language code as it would seem no one here knows what your LANGUAGE CODE IS.

 

I know it's not beeing set correctly, but I have tried to change en_US to is_IS without any luck :(

Regards

Gunnlaugur

Posted

so what is every islandic web designer using as their charset code.

 

while on the internet viewing a web site with islandic words, look at the source code in the browser and see what they use. Do you have to use a language pack for your browser?

Posted
so what is every islandic web designer using as their charset code.

 

while on the internet viewing a web site with islandic words, look at the source code in the browser and see what they use. Do you have to use a language pack for your browser?

 

 

Some websites are using utf-8 and others iso-8859-1.

Regards

Gunnlaugur

Posted

The funny thing or not so funny thing is that, all Icelandic characters are showing up correctly except in the 'from' & 'subject' in the e-mail and also on the webpage it self.

Regards

Gunnlaugur

Posted
The funny thing or not so funny thing is that, all Icelandic characters are showing up correctly except in the 'from' & 'subject' in the e-mail and also on the webpage it self.

 

My last post was misleading. Icelandic characters are being displayed correctly on the webpage itself.

Regards

Gunnlaugur

Archived

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

×
×
  • Create New...