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?
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.
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.
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?
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.
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
Hi Martin
Is the file saved using UTF-8? Or what encoding is being used?
/Jan
It is created and saved within the Umbraco Backoffice, I don't know what encoding being used but I would guess UTF-8.
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
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.
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
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
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
is working on a reply...