I am trying to manual/static Metatag entry from within the Integrated Metatags-page (admin/content/int_meta) but not in English but in Swedish. Which means including characters like ä, å or ö. The problem is that these special characters don't show up in the html-code in the metatag as I am expecting them to, but instead come out as ä and å and ö which is not desired.

Is this a bug or is there something wrong going on my site?

Comments

apaderno’s picture

Title: special HTML-characters messing things upp » Special HTML characters are messing things up

How do you expect them to show up in the HTML code?

Docc’s picture

Same problem here.

for example: 'link popularity'
comes out like: 'link popularity'

how about not converting to html characters :)

apaderno’s picture

Title: Special HTML characters are messing things up » Some characters are shown as HTML entities

The OP was not clear because the text contained HTML entities, which were rendered to the equivalent characters. I edited the posts to show the HTML entities as plain text.

To show a HTML entity in a issue report without it is converted, remember to insert it as <code>&</code>aring;, or <code>&</code>#039;.

fractile81’s picture

At the very least, I have to escape the double-quote. I'll have to look myself, but can you find any documentation that supports not encoding such values?

apaderno’s picture

On the W3C website, the value passed for the content attribute is reported to be CDATA (http://www.w3.org/TR/html4/struct/global.html#edef-META), which means that:

CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows:

  • Replace character entities with characters,
  • Ignore line feeds,
  • Replace each carriage return or tab with a single space

I would think that is exactly the opposite of what suggested: the browser should replace the character entities before to use the meta tags.

fractile81’s picture

@KiamLaLuno: so, to just make sure I'm reading things right, the character entities I'm doing for ", ', etc. should be totally valid. Correct?

For those that noticed this being a problem, how are you using the tags? Do you have an example of how this is actually breaking something (e.g. Google search results)?

apaderno’s picture

@fractile81: You are understanding correctly.

It would be interesting to know how the meta tags set with the module are used. Any browser should be able to correctly show the meta tags, even if they contain entities.
To notice that the link I reported refers to HTML 4.0, and it is still valid for XHTML too. I would expect that any browser is able to correctly handle the meta tags, by now.

apaderno’s picture

Version: 6.x-1.0-beta7 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, which is for a not supported Drupal version.