Hi,
I'm trying to import a Drupal blog with the drupalimport plugin. Both
the old drupal and the new habari database are in utf8_general_ci.
It seems to work fine, apart from the special characters. So I added:
$post->content = utf8_encode( $post->content );
$post->title = utf8_encode( $post->title );
before
$post_array = $post->to_array();
and
$comment->content = utf8_encode( $comment->content );
$comment->name = utf8_encode( $comment->name );
before
$carray = $comment->to_array();
like mentioned in
http://groups.google.com/group/habari-users/browse_thread/thread/a695fc289e0b384e
This fixes my German Umlaut problems, but not the multibyte characters
(Japanese Kanji) I have in my database.
I've read that using mysql_query('set character set utf8;') might
solve the problem, but I have not yet been able to make this work.
Any tip on how to handle the import of Kanji would be greatly
appreciated,
Alexander
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users