You are here:  » € sign in product name


€ sign in product name

Submitted by henk on Mon, 2006-08-14 20:35 in

Hi

problem with the € sign in the product name see in action : klik on the following link Hi € 30,00 1 jaar Motorola V3 RAZR black

Hi € 3000 1 jaar Motorola V3 RAZR black (product not found)

? HEnk

Linkik.com

Submitted by support on Tue, 2006-08-15 07:19

Hi Henk,

I have noticed that there are some other character encoding issue with other merchants on that site (in the product descriptions).

I see that you are using "iso-8859-1", but it looks like some feeds are in UTF-8 format. I would try this site in "utf-8" (and re-import), but there still may be a problem with the Euro symbol.

In which case, can you let me know the URL to the feed on your server and I will try it on my test server...

Thanks,
David.

Submitted by Peter on Tue, 2006-08-15 07:38

Hello,

i had the same problem.

But when you ad meta tags to the header.php whith the charset iso-8859-1 it works.
On my site it works now without any problems.

Cheers, Peter

Submitted by Henk3001 on Tue, 2006-08-15 08:23

change it but it's not the sollution.

xxx

Import from the xml file is not the problem because the € sign is imported ok.

the problem i think is from search.php to product.php product page is not reading it correct.

Henk3001 = Henk

linkik.com

Submitted by support on Tue, 2006-08-15 08:28

Hi Henk,

Can you send me the feed URL (you can reply to your forum registration email) and I will try it on my test server, for example:

http://www.example.com/feeds/merchant.xml

(where example.com is your Price Tapestry site)

Thanks,
David.

Submitted by henk on Tue, 2006-08-15 18:05
Submitted by henk on Thu, 2006-08-17 17:23

maybee this one lost your attention. :)

Thx Henk

Submitted by support on Thu, 2006-08-17 17:27

On the case... Henk :)

Submitted by support on Thu, 2006-08-17 17:50

Hello Henk I have found the problem.

It is because, when using mod_rewrite; the product name is not urlencoded(), and this is why the € character is becoming corrupted.

To fix it, find on Line 143 of search.php this code:

$searchresults["products"][$k]["productHREF"] = "product/".tapestry_hyphenate($product["name"]).".html";

Change it to this:

$searchresults["products"][$k]["productHREF"] =
  "product/".urlencode(tapestry_hyphenate($product["name"])).".html";

That will encode the € sign and then the product will be found.

Hope this helps!
David.

Submitted by henk on Thu, 2006-08-17 18:08

sry sry sry,

it works

:)
Cheers
HEnk