Copied to clipboard

Flag this post as spam?

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


  • gabri 14 posts 24 karma points
    Aug 04, 2009 @ 12:08
    gabri
    0

    Problem showing quotes and other "alt-characters"

    Hi all,

    My Umbraco 4 site does not show characters like ‘ (instead I get ‘), ’ (I get €™), ï (ï). Basically all characters that have an "alt + numeric keys" way of typing are replaced by other characters.

    The problem is not in the way the content is stored, for when I look up the content in the database I see the original characters. Even more, when I create a usercontrol that just shows some quotes and add that to a teplate, those quotes are "replaced" too. And this happens both on Vista and on Windows Server 2003, on different IIS versions.

    I cannot image Umbraco being unable to show content without messing things up (because I suppose that would have been fixed a long time ago), so this is obiously some kind of encoding-setting that I am missing. Anyone who knows how to handle this issue?

    Thanks,

    Gabri

  • dandrayne 1138 posts 2262 karma points
    Aug 04, 2009 @ 12:19
    dandrayne
    0

    Try going to umbracosettings.config and changing

    <TidyCharEncoding>Raw</TidyCharEncoding>

    to

    <TidyCharEncoding>UTF8</TidyCharEncoding>
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 04, 2009 @ 12:42
    Jan Skovgaard
    0

    You could also make an upgrade the latest version, which is 4.0.2.1

    It's a well known bug in 4.0.1 I think.

    /Jan

  • gabri 14 posts 24 karma points
    Aug 05, 2009 @ 11:09
    gabri
    0

    Hi guys, thanks for the replies.

    I did the upgrade and tried the settings change (as well as some other TidyCharEncoding settings), but unfortunately the problem still exists. The texts look fine in the HTML editor, even in HTML view, but when I look at them via the front-end, "problematic characters" are replaced...

    Gabri

     

  • dandrayne 1138 posts 2262 karma points
    Aug 05, 2009 @ 11:12
    dandrayne
    1

    Hows about adding this in your template? (inside the <head></head>)

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    Dan

     

  • gabri 14 posts 24 karma points
    Aug 05, 2009 @ 11:21
    gabri
    0

    That's it! Thanks a million!

Please Sign in or register to post replies

Write your reply to:

Draft