Copied to clipboard

Flag this post as spam?

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


  • Kristoffer Eriksen 185 posts 465 karma points
    Jun 03, 2013 @ 11:33
    Kristoffer Eriksen
    0

    Prevalue txt-file source containing æ,ø å

    Hey

    I've got a problem with a dropdownlist containing values from a prevalue source containg æ,ø,å.

    If I change the characters with html-encoding ( æ = æ ) then i shows fine in Umbraco, but on the frontend, it shows the encoding, and not the correct char.

    If I keep the æ,ø å in the text-file which is the source for the prevalues, the letters is shown with an unknown char.

    You can se the live example at http://www.moebler.dk/forbruger/elektronisk-klageformular.aspx.

    It is the dropdown in "Sælger" -> "Forhandler" in the second section

  • Comment author was deleted

    Jun 03, 2013 @ 12:02

    Hey Kristoffer,

    Are you using the razor macro to output the form?

  • Kristoffer Eriksen 185 posts 465 karma points
    Jun 03, 2013 @ 12:13
    Kristoffer Eriksen
    0

    Hej Tim

    No I'm using the umbracoContour.RenderForm

    Haven't tried the Razor macro

  • Kristoffer Eriksen 185 posts 465 karma points
    Jun 03, 2013 @ 12:16
    Kristoffer Eriksen
    0

    Just tried with the Razor macro. No changes.

  • Kristoffer Eriksen 185 posts 465 karma points
    Jun 03, 2013 @ 12:25
    Kristoffer Eriksen
    0

    Now it is using the Razor Macro

    And I changed all the æ,ø,å in the textfile to html encode

    Æ

    Æ

    æ

    æ

    Ø

    Ø

    ø

    ø

    Å

    Å

    å

    å

    And this is how it looks in Umbraco

    But in the frontend, it doesn't look nice

  • Comment author was deleted

    Jun 03, 2013 @ 12:27

    Ok just tried this and just make sure you save your file with utf8 encoding then it works fine with the danish chars :)

  • Comment author was deleted

    Jun 03, 2013 @ 12:31

    Ok could you try with danish chars in text file (so no html encoding) and make sure the encoding is utf8 of that file that should do the trick

  • Kristoffer Eriksen 185 posts 465 karma points
    Jun 03, 2013 @ 12:39
    Kristoffer Eriksen
    0

    And yet another save from the Contour Hero... Thanx alot Tim. Cya next week :-)

Please Sign in or register to post replies

Write your reply to:

Draft