I'm not sure if this is a bug or just a setting I'm missing, but I'm having troubles with the textbox multiple encoding in Umbraco 7.1.6.
I am using a textbox multiple field for meta description content. When the field contains æ, ø or å, these characters are displayed as their decimal values (i.e. på = på ; - withouth the space), but I want them to be encoded correctly.
I'm using Razor to output the values and tried both:
So this means Google rendesrs the characters in the right way regardless? Sounds great :)
I am not assigned to the project that had these issues anymore, so unfortunately I cannot test it. But it's great to know if I ever run in to this problem again, thank you :)
Textbox multiple encoding
Hi everyone
I'm not sure if this is a bug or just a setting I'm missing, but I'm having troubles with the textbox multiple encoding in Umbraco 7.1.6.
I am using a textbox multiple field for meta description content. When the field contains æ, ø or å, these characters are displayed as their decimal values (i.e. på = på ; - withouth the space), but I want them to be encoded correctly.
I'm using Razor to output the values and tried both:
and
If I just type æ, ø, å directly in the template, they work fine. It doesn't seem to be a problem with RTE fields etc either.
Does anyone know what to do? :-)
Hi Signe,
Try to see this similar subject on using special characters on razor
http://our.umbraco.org/forum/developers/razor/56068-Special-Characters-Problem-Only-on-Razor
http://stackoverflow.com/questions/13451209/charset-utf-8-in-asp-net-for-special-turkish-characters
Hope this helps,
/Dennis
Hi Dennis
Thank you for your reply!
The Macro is definetly saved as UTF-8 and unfortunately it doesn't make a difference if its saved with or without BOM.
Could this maybe be a server setup thing? It's just weird because it does work most of the time.
I've been trying a few things and I'm really confused about this:
<meta name="description" content="@Html.Raw(Model.metaDescription)">
<title>@Html.Raw(Model.metaDescription) </title>
This is the exact same content, but in the meta description special characters are rendered as their HTML value, while the title looks exactly right.
UPDATE: The server's HTTP Response header is set to UTF-8 now too, but still no luck :(
Hi Signe
Did you ever find a solution on this subject?
I am struggeling with the same problem.
// René
Hi René
No, unfortunately I didn't :(
I do hope you have more luck, but I think it might be a bug. Not sure though :)
Hi Signe
See the answer in this post which explains why you don't have to worry about this issue.
// René
Hi Signe
You can also test how the Google search result will look like. Use the link below:
http://www.seomofo.com/snippet-optimizer.html
If you copy in this example in the meta description:
Then it gives you the following Google search result:
Test test æøå
// René
Hi René
So this means Google rendesrs the characters in the right way regardless? Sounds great :)
I am not assigned to the project that had these issues anymore, so unfortunately I cannot test it. But it's great to know if I ever run in to this problem again, thank you :)
Hi Signe
Yep that's correct. :-)
// René
is working on a reply...