my friend shhboy and i have found and fixed 2 bugs on showing chinese character.
plz modify these line to the ones shown below:
config.lib.php
- Code: Select all
line 364:
$input_field = '<input class="wowinput' . $text_class . '" name="' . $this->prefix . $values['name'] . '" type="text" value="' . htmlentities($values['value'],ENT_NOQUOTES, "UTF-8") . '" size="' . $length[1] . '" maxlength="' . $length[0] . '" />';
addons\info\inc\char.lib.php
line 313:
'LINK' => $link['url1'] . urlencode(($quest_name)) . (isset($link['url2']) ? $link['url2'] . $quest_level : '') . (isset($link['url3']) ? $link['url3'] . $quest_level : ''),
DO NOT use utf8_encode/utf8_decode functions.they can only destory characters.
thx