Hello @ all,
David helps me so much, so i whant help other users:
I had the problem whith special characters in the category. Some people from other countrys have the same problem.
E.g. Ä, Ö, Ü,...
So i made following changes:
/categories.php
coment out following:
if (!widget_errorCount())
{
$_POST["name"] = trim($_POST["name"]);
// if(!ereg("^[0-9a-zA-Z\. ]{0,255}$",widget_posted($_POST["name"])))
// {
// widget_errorSet("name","category name contains invalid characters");
// }
}
Then in /search.php change follwing:
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\."):"");
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],"äöü&>:\."):"");
If you need other signs as äöü... change this.
On my page this works without problems.
If there are problems on your side, please tell me.
Cheers, Peter
Hello Bernhard,
What you've described there looks like it's to do with a character encoding mis-match between (at least) one of your feeds and the character set defined in $config_charset at line 4 of config.php.
THe default is "utf-8" which is by far the most common; and it is likely that the majorty of your feeds are utf-8 encoded but at least one - in particular the one containing a product name that is displayed as "Apple Zubehör Adapter Kabel" is probably iso-8859-1 encoded.
If you can identify the feed that product comes from, click Filters alongside the feed and add UTF8 Encode filters to the Product Name, Description, Category and Brand fields for that feed. Save the filter, re-import and those products should then display correctly.
Hope this helps!
heers,
David.
--
PriceTapestry.com
Hey David,
thanks for your fast reply.
I tried to encode and decode the fields in the feed concerned but the result was even worst...
Encoding all the fields to UTF-8 caused all the special characters to look like in the example above.
Decoding the fields created a lot of questions marks in the frontend because the characters couldn't be interpreted correctly.
Maybe I should give the <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in the template a try.
Best regards
Bernhard
Hello Bernhard,
There's no harm in adding the meta tag you suggest to your template (which you can do easily in html/header.php)
If you revert to the situation as it was, one thing you can do is use your web browser's View > Character Encoding menu to experiment with different encodings and see if there is one which displays that particular product name correctly - try ISO-8859-1 first - it will break the ones which display OK normally but it will indicate if character encoding is the problem.
Otherwise, if you could possibly let me know the URL of your installation and the filename of the feed (I'll remove the details before publishing your reply) I'll download the feed to my test server and check it out for you...
Cheers,
David.
--
PriceTapestry.com
Hi Peter,
thanks for your post.
David really does a great job and I appreciate his support.
I'm dealing with some german special characters (Umlaute) on my test site as well and the behavious seems to be pretty strange. Some special characters are "messed up" in the categories, others not.
Example:
"Apple Mac mini Zubehör" and the URL is "category/Apple-Mac-mini-Zubehör/"
"Apple Zubehör Adapter Kabel" and the URL is "category/Apple-Zubehör-Adapter-Kabel/"
In my opinion the best way would be to use special characters in the categories' names but to rewrite them in the URL correcty (ö = oe, ä = ae, ü = ue, ß = ss).
Example:
"Apple Mac mini Zubehör" and the URL is "category/Apple-Mac-mini-Zubehoer/".
Is there a way to realize that?
Aditionally - can the filenames and references be changed to rename "category", "brand", "merchant"?
Thank you and best regards,
Bernhard