Closed (fixed)
Project:
Metatag
Version:
7.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2011 at 11:48 UTC
Updated:
31 Mar 2013 at 10:13 UTC
Really nice module, but i have a problem with accentuated characters.
For the moment i only see the problem with page titles > Title: [current-page-title]
It seems that some accents are not supported, am i right ?
Comments
Comment #1
dave reidWhat kind of problem? Can you be more specific?
Comment #2
jmix commentedSorry, i missed your message.
When i activate Meta-tags module, my page titles are misinterpreted if i have accentuated or special characters.
For exemple if my page title is l'art dans les chappelles, and if i set the rule to "page titles > Title: [current-page-title]", the output in the browsers' page title will be
l’art dans les chapelles.A problem of character encoding in the module i guess.
No problem when the module is not activated.
Thanks for your help !
Comment #3
Ramsos commentedHi, I encounter the same issue and I worked around by doing this replacement in the metatag.inc file.
Initial code :
Replaced by :
As you see, I removed the check_plain on the getValue as it's not needed : the value is already escaped by Token and so this double escape is the problem.
Regards,
Comment #4
jmix commentedThanks so much !!!
I'll try this as soon as i can !
I'm not very familiar with the git thing but i guess this should be proposed as a patch for the next release !
Comment #5
dave reidI think this has already been fixed in 7.x-1.x-dev. Please confirm.
Comment #7
jmix commentedOk, i tottaly forgot this thread...
Fix from Ramsos is ok (not sure but i think latest devs release didn't do it totally: it displays well in browser's title but not in page code. So i guess it can be a problem for seo, but perhaps i'm wrong ?).
Thanks and sorry for late answer...
Comment #8
dave reidMake sure to upgrade to the latest code from Token. There was a patch to ensure that we get the raw value from current-page:title.
Comment #9
drupal_jon commentedHi, I'm having a similar problem in meta descriptions.
The dev release fixed most special characters for me (thanks), but the apostrophe character (') is still being output as
'This is with both manually entered and token replaced meta descriptions.
Comment #10
enricotersi commentedI have the same problem described in #9
Comment #11
robhoward79 commentedI also have the same problem as #9. Fix mentioned in #3 sorted out the page titles, but I cannot see where in the module it is double-escaping the characters in keywords and/or descriptions
Comment #12
giorgoskas per last 3 or more reports I opened up a new issue #1957358: description and abstract (possibly others) double encoding bug
please follow the progress there