Fix for non-change2latin URLs in QC 3.x

beholder

Avatar: beholder

2009-01-26 18:03

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.

The easy fix is to cut the function change2Latin() from Trash.tpl and put in into the config/lang_xx.php file. This file is usually saved as ANSI so there is no problem when converting characters with the function in it.
Another obvious solution is to have the whole Trash.php saved in ANSI format. This however is more difficult for newbies.

A perfect solution and an actual bugfix would be to move the change2Latin array definition to the language file itself (lang/xx.php). change2Latin() would of course stay in the Trash.php file.

» Quick.Cart v3.x

beholder

Avatar: beholder

2009-02-05 15:38

the upper-mentioned fix by putting the whole change2Latin() into lang_xx.php doesn't work as expected.
All users should use Notepad++ and convert + re-save the Trash.php in ANSI format.
A more robust fix should be implemented by OpenSolution, in my opinion.

Manu64

Avatar: Manu64

2009-08-06 11:57

Hi
I have the same problem with french language encoding

Manu

beholder

Avatar: beholder

2009-08-06 22:21

you need to use notepad++ to change encoding of all french characters in file trash.php, function change2Latin(). Save the file as UTF-8. Then you shouldn't have a problem.

Back to top
about us | contact