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:
<?php
$message = $this->GetRedirectMessage();
$user = $this->GetUser();
modified:
<?php
header('Content-type: text/html; charset=UTF-8');
$message = $this->GetRedirectMessage();
$user = $this->GetUser();
original:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
modified:
<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:
// raw page handler
elseif ($this->method == "raw")
{
header("Content-type: text/plain");
print($this->
Method($this->
method));
}
modified:
// raw page handler
elseif ($this->method == "raw")
{
header("Content-type: text/plain; charset=UTF-8");
print($this->
Method($this->
method));
}
Refference :
http://wikkawiki.org/WikkaLocalization∞
There are no comments on this page. [Add comment]