If I use the Swedish letters ÅÄÖ or åäö int the beginning they dissapear. But not always. For example:
If I call a product "Åkerbär" it shows up OK in the shop. But in the basket the product is called "kerbär". If I call the same product "2007. Åkerbär" it will be OK both in the shop and in the basket. Very confusion.
Almost the same happens when a man named "Åke Öst" buy something. In the order list his name shows up OK. But when I look at the order details the man is named "ke st". He is also called "ke st" in his e-mail with order details.
If someone use the contact form the sam will happens.
Now I have tried Quick.cart loaded v.1.4, v.2.1, v.2.2. All withe same problems.
For me it is a mystery.
I hope someone can help me.
» Quick.Cart v2.x
bradhog
bradhog
2007-06-11 08:21
I see the same problems seems to show up also in this forum...
bradhog
merci
2007-06-11 09:14
bradhog - on this forum were some similar topics, maybe search for them. I found this http://www.opensolution.org/Quick.Cart/forum/index.php?p=readTopic&nr=3143 Maybe it will help you
bradhog
2007-06-11 10:44
Thansks for answer. But it don't seems to be the same problem. I have lots of stuff on the server, but it is only when I try to use Quick.cart the problem arise.
bradhog
merci
2007-06-11 14:46
bradhog - so, maybe send link to page with this problem, we will test it.
bradhog - it seems You have on server problem with function fgetcsv using in libraries/FlatFiles.php. PHP manual says (http://pl.php.net/manual/en/function.fgetcsv.php): Locale setting is taken into account by this function. If LANG is e.g. en_US.UTF-8, files in one-byte encoding are read wrong by this function.
Please contact with Your server provider and ask what local setting Your server have that You have this problem. For me setlocale() function should help but if not then admin should know how to change it.
bradhog
2007-06-13 11:19
Now my web hotel support also have tested. They also say that I must use the setlocale() function.
Well the next question is how. What am I supposed to do?
http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=3033. I have read this, but I dont understand.
I can't find "function changeTxt( ){ if( $this->iso == true ){" in the tplParser
and where in the config/general file shall I put in the setlocale() function. How shall I write in the ()? Give me an example.
Must I change the character set from iso.8859-1 to UTF-8? Must I do so in other places than in the language file?
Puh. Sorry to disturb you with so many questions. . .
Try http://www.bcpl.net/~j1m5path/isocodes.html for other countries. HTH
bradhog
2007-06-13 17:20
Very much tank you for all help. I will try again tonight. Just a last question:
In which file and where in this file shall I use the setlocal() function? Is it in the general.php or the index.php?
I have done a Swedish translation for ver. 2.2. Just some last checks to do. Shall I send it?
bradhog
bradhog
2007-06-14 08:00
Still I don't know where I shall use the setlocale() function. I have tried setlocale(LC_ALL, se_SE); in both general.php and index.php. The only thing that happens is that I get a blank screen.
Most problems are gone with UTF-8, but some remains.
The problem seems to have something with fields in forms to do. If First_name, last_name, Street, City, Comment_order begins with a Swedish letter Å,Ä or Ö this letter dissapears in forms like OrdersDelivery and ordersmore&orderID.
The most mysterious thing is that in orderlist, where the fields First_name and Last_name are put together in ONE line, the swedish letters are perfectly displayed?! Also when I use the plugin sendOrderToClient the result is perfect in the e-mail . . .
bradhog - put it in config/general.php on top of file
bradhog
2007-06-14 14:58
A blank screen, both in the shop and in admin . . .
bradhog
bradhog
2007-06-14 15:54
Now I have managed to get the setlocale() function in config/general.php on top of file witout getting blank screens. But the problem still the same.
bradhog
pingvin
2007-06-19 22:56
I had a similar problem, couldn't get proper chracters for capital Croatian letters (windows-1250 CP), in Address and City fields, on Overview page. Those characters were simply stripped . ob_start( 'changeCharset' ); ----> ob_start( ); helped on one server, but not on the other one. The other one returns "500 Error" . It's on Apache 1.37 and PHP 4.4.7.
Pingvin
bradhog
2007-06-20 11:58
Weii, I don't know how many times I have spend to solve the problem. Guess we have to live with it or use another e-shop script . . .