WordPress.org

Support

Support » How-To and Troubleshooting » encoding problem

encoding problem

  • Hi,
    I am trying to use WordPress as my blog tool.
    But WordPress has a problem in charset encoding, I guess.
    When I was Korean, the characters are displayed well on Web browser. However, when I view the source with NotePad, the characters are displayed as following:
    #44228;룡산 하면 그동안 동학
    Of course I had checked the related configuration in b2config.php :
    // IMPORTANT! set this to 0 if you are using Chinese, Japanese, Korean,
    // or other double-bytes languages
    $use_htmltrans = 0;
    Could you help me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • do you set charset in meta tag in html?
    like <meta http-equiv=”Content-Type” content=”text/html; charset=euc-kr” />

    <meta http-equiv=”Content-Type” content=”text/html; charset=euc-kr” />

    espacially when meta tag of b2edit.php is iso-8859-1,then
    your input multibyte characters are automatically converted entity references by browser.
    please please,developpers.
    don’t hardcoding charset of metatag or header.
    please make changeable it in b2config.php
    like
    <meta http-equiv=”Content-Type? content=”text/html; charset=$charset” />

    Yes, I tried to change all meta tags to assign encoding charset.
    However, I can’t get a appropriate charset in view source mode. 🙁

    first,I can see the korean text.
    but this page encoding is iso-8859-1,
    so the text is converted “Character entity references”.
    so probably your input page is viwed in latin encoding.
    confirm your page encoding when posting.
    or
    maybe htmlentities() function is the origin.
    convert “htmlentities(” to “htmlspecialchars”.
    http://jp.php.net/manual/kr/function.htmlentities.php
    sorry, I don’t know when it used in source.
    please search.

    when >>where
    mistake

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘encoding problem’ is closed to new replies.
Skip to toolbar