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 169 posts 388 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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 03, 2013 @ 12:02
    Tim Geyssens
    0

    Hey Kristoffer,

    Are you using the razor macro to output the form?

  • Kristoffer Eriksen 169 posts 388 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 169 posts 388 karma points
    Jun 03, 2013 @ 12:16
    Kristoffer Eriksen
    0

    Just tried with the Razor macro. No changes.

  • Kristoffer Eriksen 169 posts 388 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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 03, 2013 @ 12:27
    Tim Geyssens
    0

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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jun 03, 2013 @ 12:31
    Tim Geyssens
    100

    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 169 posts 388 karma points
    Jun 03, 2013 @ 12:39
    Kristoffer Eriksen
    0

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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies