2 users online. Create an account or sign in to join them.Users
Special characters not working in attributes?
This is an open discussion with 5 replies, filed under Troubleshooting.
Search
Sounds like Problems with meta tags and special characters. It shouldn't be a problem to have encoded characters, but if you don't like it you can switch your outpu method to HTML (assuming it is XML at the moment).
Ok, thanks. I just changed my output method from xml to html and it seems to work. My umlauts are displayed properly in my description meta tag now.
Just wonder if this entails any drawbacks... Let's see.
Just wonder if this entails any drawbacks
You lose auto-indenting in your HTML, is a limitation of the XML processor.
Yes indeed, my HTML looks a bit messy now. I hate that...
Why not use the special character encoding in your source? Simply find the appropriate character code for your encoding and use &#{code}; syntax. This should create the correct output and is much safer than using the special characters in your source. That way you can keep the XML output (and with it the correct indentation)
Create an account or sign in to comment.
I have an XSL template:
<meta name="description" content="{$page-description}"/>and a variable:
<xsl:variable name="page-description"> <xsl:choose> <xsl:when test="$current-page = 'home'"> <xsl:text>Lots of umlauts äöü</xsl:text> </xsl:when> <xsl:otherwise> ... </xsl:otherwise> </xsl:choose> </xsl:variable>However, it seems that umlauts are not allowed in Symphony's XLS attributes?
Because instead of what I really want I am getting this:
How can this be fixed?
Thanks for any help in this matter.