MyWikkaSite : MultiLanguage

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
HomePage > UpdateInfo > Multi Language

Wikka Korean Encoding

The default charset used by Wikka is ISO-8859-1. The following is a hack allowing to use UTF-8 as a default charset.
You can test a modified version of Wikka 1.1.6.2 with this hack.

Two lines have to be modified in actions/header.php:

original:
  1. <?php
  2.     $message = $this->GetRedirectMessage();
  3.     $user = $this->GetUser()


modified:
  1. <?php
  2.      header('Content-type: text/html; charset=UTF-8');
  3.      $message = $this->GetRedirectMessage();
  4.     $user = $this->GetUser()


original:
  1. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />


modified:
  1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 


A similar hack has to be applied to the /raw handler to correctly display the source as unicode. The following change must be done in libs/Wakka.class.php:

original:
  1. // raw page handler
  2.     elseif ($this->method == "raw")
  3.     {
  4.         header("Content-type: text/plain");
  5.         print($this->Method($this->method));
  6.     } 


modified:
  1. // raw page handler
  2.     elseif ($this->method == "raw")
  3.     {
  4.         header("Content-type: text/plain; charset=UTF-8");
  5.         print($this->Method($this->method));
  6.     } 


Refference : http://wikkawiki.org/WikkaLocalization

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0365 seconds