Copied to clipboard

Flag this post as spam?

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


  • Martin 114 posts 313 karma points
    Feb 16, 2015 @ 20:07
    Martin
    0

    Swedish characters å ä ö are displayed as Ã¥ ä ö

    Hi,

    After upgrading to version 7.2.1, I noticed that a hard-coded html link <a href="@newsOverview.Url">å ä ö Äldre nyheter</a> in a partial view no longer will display å ä ö correctly. Instead Ã¥ ä ö is generated.

    Does anybody have the same issue? And perhaps a solution?

    Regards, Martin

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2015 @ 20:08
    Jan Skovgaard
    0

    Hi Martin

    Is the file saved using UTF-8? Or what encoding is being used?

    /Jan

  • Martin 114 posts 313 karma points
    Feb 16, 2015 @ 21:25
    Martin
    0

    It is created and saved within the Umbraco Backoffice, I don't know what encoding being used but I would guess UTF-8.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2015 @ 21:40
    Jan Skovgaard
    0

    Hi Martin

    Could you try opening the file outside of Umbraco in an editor like Sublime text for instance? I suspect it's an issue with the file being either saved in UTF-8 or UTF-8 BOM...it can be some tricky stuff.

    /Jan

  • Martin 114 posts 313 karma points
    Feb 16, 2015 @ 22:08
    Martin
    0

    Ok I will try. I just noticed that all partial views that were created using 7.1.8 looks fine in 7.2.1 until I click save and, so to say, just re-save the file. So I would say that there is a difference between the Umbraco versions regarding how files are saved. But I will test to save the files in another program and see what happends.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 16, 2015 @ 22:11
    Jan Skovgaard
    101

    Hi Martin

    Ok sounds like the issue I'm having in mind - I think you can fix it by saving it in UTF-8 BOM if the file turns out to be in UTF-8.

    Not sure why though but I've seen this as well using danish characters (æ,ø and å).

    /Jan

  • Martin 114 posts 313 karma points
    Feb 17, 2015 @ 19:07
    Martin
    0

    YES! That did it! Big thanks for the advice.

    However, it makes me believe that something has change from version 7.1.8 to 7.2.1 regarding the encoding that Umbraco uses. Would you know if this is true, or if there are plans to make some changes?

    Regards, Martin

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 17, 2015 @ 20:57
    Jan Skovgaard
    0

    Hi Martin

    I'm not sure how and why...All I know is that I had the same issue before Codegarden this year...so that's been on 7.1.x back then. Not sure why it happens all of the sudden in your setup after the upgrade.

    But happy I was able to point you in the right direction.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft