1
0

Fix import UTF-8 bug, thanks to jan

This commit is contained in:
Garvin Hicking
2006-10-27 09:18:19 +00:00
parent 332658f228
commit 52ecd6d0ce
7 changed files with 19 additions and 5 deletions

View File

@ -154,6 +154,11 @@ class Serendipity_Import_Nucleus extends Serendipity_Import {
for ($x=0, $max_x = mysql_num_rows($res) ; $x < $max_x ; $x++ ) {
$entries[$x] = mysql_fetch_assoc($res);
echo "BODY: " . $entries[$x]['ibody'] . "<br />\n";
echo "DECODED BODY: " . $this->strtr($entries[$x]['ibody']) . "<br />\n";
die('done');
$entry = array('title' => $this->decode($entries[$x]['ititle']),
'isdraft' => ($entries[$x]['idraft'] != '1') ? 'false' : 'true',
'allow_comments' => ($entries[$x]['iclosed'] == '1' ) ? 'false' : 'true',