Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SGB 27 posts 73 karma points
    Sep 09, 2014 @ 09:19
    SGB
    0

    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&#229 ;  - withouth the space), but I want them to be encoded correctly. 

    I'm using Razor to output the values and tried both: 

    <meta name="description" content="@Model.metaDescription">

    and

    <meta name="description" content="@Html.Raw(Model.metaDescription)">

    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? :-)

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Sep 09, 2014 @ 10:59
  • SGB 27 posts 73 karma points
    Sep 09, 2014 @ 12:53
    SGB
    0

    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.

  • SGB 27 posts 73 karma points
    Sep 10, 2014 @ 13:12
    SGB
    0

    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.

  • SGB 27 posts 73 karma points
    Sep 19, 2014 @ 10:31
    SGB
    0

    UPDATE: The server's HTTP Response header is set to UTF-8 now too, but still no luck :(

  • René Andersen 238 posts 684 karma points
    Mar 17, 2015 @ 14:38
    René Andersen
    0

    Hi Signe

    Did you ever find a solution on this subject?

    I am struggeling with the same problem.

    // René

  • SGB 27 posts 73 karma points
    Mar 17, 2015 @ 14:40
    SGB
    0

    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 :)

  • René Andersen 238 posts 684 karma points
    Mar 17, 2015 @ 16:19
    René Andersen
    0

    Hi Signe

    See the answer in this post which explains why you don't have to worry about this issue.

    // René

  • René Andersen 238 posts 684 karma points
    Mar 17, 2015 @ 16:34
    René Andersen
    1

    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:

    Test test &#230;&#248;&#229;

    Then it gives you the following Google search result:

    Test test æøå

    // René

  • SGB 27 posts 73 karma points
    Mar 18, 2015 @ 08:58
    SGB
    0

    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 :)

     

  • René Andersen 238 posts 684 karma points
    Mar 18, 2015 @ 09:13
    René Andersen
    0

    Hi Signe

    Yep that's correct. :-)

    // René

Please Sign in or register to post replies

Write your reply to:

Draft