Hello David,
when i searched a product and after that i will follow the link to the product information or compare site,
the links are defect. So the next site open with no results
For example:
Camcorder, JVC, »GZ-HM 200 BEU«
../product/Camcorder-JVC-»GZ-HM-200-BEU«.html
Camcorder JVC »GZ HM 200 BEU«
or
Rasenmäher
../product/Rasenmäher-Reiniger.html
Rasenmäher Reiniger
In the config.php i use $config_charset = "iso-8859-1"; it worls fine with import product feeds.
I hope you understand my problem.
Thanks for reply
Kevin
Hi David,
sorry it dont work. I have set the filter on UTF8Decode (Title and description) and imported all feeds again.
All products with these characters in äöüäÜÖÄÜß»« i cant got to the compare or information page.
Kevin
me again.
I think the url rewrite modul have to make
ä>ae ö>oe ü>ue Ü>Ue Ö>Oe Ä>Ae ß>ss »>_ «>_
is this possible.
Thanks Kevin
Hi Kevin,
As the latest distribution of Price Tapestry keeps a second, un-modified name for display use, and separate URL safe version; it might be best to limit the URL safe version to ASCII characters. To try this method, in includes/tapestry.php look for the following code beginning at line 22:
if ($config_charset)
{
$allow = chr(0x80).'-'.chr(0xFF).$allow;
}
...and comment out as follows:
/*
if ($config_charset)
{
$allow = chr(0x80).'-'.chr(0xFF).$allow;
}
*/
That way, the URL value won't rely on any correct interpretation by the browser or web server before reaching PHP...
Hope this helps!
Cheers,
David.
Thanks for the quick support, its great.
But sorry, it dont work.
Now all special characters are deleted in the search (i think), so no products were found after i click on product compare or information.
Kevin
Hi Kevin,
Sorry, yes - that makes sense. At the top of search.php, look for this code on line 6:
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\."):"");
...and REPLACE with:
$q = (isset($_GET["q"])?$_GET["q"]:"");
Cheers,
David.
it dont work.
the comment out i have deleted.
Then i replace the code in search.php on line 6.
Now i will search Rasenmäher this works fine.
The url in browser is: ../search.php?q=Rasenm%E4her
The Text in the search field is Rasenmäher.
After i click a link (compare or information) the browser link turn to
../product/Rasenmäher.html
The Text in the search field is Rasenmäher
So i think the links on the product details pages generated false.
Kevin
Hi Kevin,
Could you email me a link to your installation and I'll take a close look for you...
Thanks,
David.
Hi Kevin,
That looks like that particular feed is in UTF-8, as that is how characters appear when they are UTF-8 encoded but displayed with ISO-8859-1 as the character set.
I have quite a few German users of Price Tapestry and my understanding from them is that ISO-8859-1 is best overall for the German language; so what you can do, is for the particular feed that is causing this problem, add a UTF8 Decode (UTF8 > ISO-8859-1 conversion) to the Product Name and Description fields, and then re-import and it should work correctly...
Cheers,
David.