Swedish characters look strange

asali

No avatar

2009-03-22 00:53

I'm in the process of upgrading my 2.x to 3.2 and I tried to install the plugin of Send order to costumer. It works just fine, but all the typical swedish characters either dissapear or look strange.
I have tried to change Setlocale in config/general.php but it didn't help.

Anyone have any ideas how to solve this?
Thanks!

» Quick.Cart v3.x

beholder

Avatar: beholder

2009-03-22 03:09

yes, it could be the change2Latin encoding problem.

This problem is very abundant is CZ and SK region, almost every QC website I stumble upon has it. These guys have windows-1250 encoding in their lang file and therefore function change2Latin() in libraries/Trash.php doesn't work, because the whole file Trash.tpl is encoded in UTF-8. URLs generated in Quick Cart have čąťžąčáýľ characters in them.

An obvious solution is to have the whole Trash.php saved in ANSI format. This however is more difficult for newbies. All users should use Notepad++ and convert + re-save the Trash.php in ANSI format.

How about your URLs with special characters, how are they displaying in browser address line? in their latin-only couterparts or as their true themselves?
And your encoding in lang/se.php? it's not UTF-8, right?

asali

No avatar

2009-03-22 10:38

Yes, the encoding in my lang/se.php is UTF-8.
Should I change that into something else?

The links looses the swedish characters.

beholder

Avatar: beholder

2009-03-22 11:15

hmm, may I have a copy of your lang/se.php file? I could look into it, seems interesting enough. Please upload somewhere on your website in zip form.

beholder

Avatar: beholder

2009-03-22 12:15

I think it could be this file saying it is using UTF-8 but actually not SAVED IN utf-8.

asali

No avatar

2009-03-22 23:16

I started all over. Deleted my old files and uploaded them again.
Interesting is that links with subpages looses the swedish characters. A link with no subpages have the swedish characters.

Are the language files for 3.0 very different? I just realized that there are no languagefile for swedish and 3.2... Could that be a problem?
I downloaded the nl languagefile just to compare and they seem different.

beholder

Avatar: beholder

2009-03-22 23:57

every version has slightly different language file entries.
if there is no language file for your version of QC, you should translate it from EN yourself, use old language file only as a reference - to help you with translation.

Also, when creating translation, make sure you save your file in UTF-8 (without BOM) format. Use Notepad++ to do that.

Also, why do you use/try 3.2 when there is a 3.3 final out there?

asali

No avatar

2009-03-23 00:06

I downloaded 3.2 and started editing it just before the 3.3 was relesed. As I have read there is not much of a difference between 3.2 and 3.3 and I can do that upgrade more easily than from 2.x to 3.2.

I'll try to do a new language file and see if that helps.

asali

No avatar

2009-03-23 00:29

File is now saved in UTF-8 format and uploaded. When I try to add a product in the basket I end up with a white screen...

asali

No avatar

2009-03-23 00:49

Is it trash.php or trash.tpl that should be saved in ANSI-format?

beholder

Avatar: beholder

2009-03-23 02:41

libraries/Trash.php

File should be first -coverted- to ANSI (in Notepad++) and then saved normally (it will be saved in ANSI format).

there is no trash.tpl

about us | contact