Swedish characters get lost...

asali

No avatar

2008-03-21 19:12

I have installed the swedish language plug in.
When I add a product category that starts with an Å, Ä or Ö it works just fine. But when I try to add a short description of the category and start the sentence with an Å Ä or Ö it get lost.
I have searched the forums but I just don't find any solution to my problem. Does any of you have an idea?

Thanks for your help!

» Quick.Cart v2.x

asali

merci

No avatar

2008-03-25 10:07

asali - try to add setlocale in config/general.php file, but i don't know what should be set for your language, for polish it is like:
setlocale( LC_ALL, 'pl_PL' );
you can try search more on:
http://pl.php.net/manual/en/function.setlocale.php

asali

No avatar

2008-03-31 13:13

Where in the config/general.php file should I put setlocale?

asali

asali

No avatar

2008-03-31 13:35

Never mind. I managed to figure it out myself.

asali

boffa

No avatar

2008-04-03 06:29

Hi asali

Please share the info with the rest of the forum when you solve something, it saves a lot of more questions.

To get the local setting add the following string to the config/general.php file
setlocale(LC_ALL, 'sv_SE.ISO_8859-1'); (This is for Swedish)

If you need to set it for another language, change the sv_SE to en_US for US English and so on. If needed you also have to change ISO_8859-1 to your specific language code.

You can write the string just under //error_reporting( E_ALL ); and it will work just fine.

Boffa

Back to top
about us | contact