note 37171 added to function.domnode-set-content

From: Date: Wed, 05 Nov 2003 17:18:54 +0000
Subject: note 37171 added to function.domnode-set-content
Groups: php.notes 
Request: Send a blank email to php-notes+get-59955@lists.php.net to get a copy of this message
If you want to set_content which is not in Alphabet, such as big5 charset, you have to use the iconv() to convert your codeset from big5 to something else, such as UTF-8. Here is a example: $node->set_content(iconv("big5","UTF-8","This is a test."); $node->set_content(iconv("big5","UTF-8","[Chinese Chars]"); These works find that won't dump garbage chars when your use dump_mem to file. Ps. don't forget to include the php_iconv.dll ---- Manual Page -- http://www.php.net/manual/en/function.domnode-set-content.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37171 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37171&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37171&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59955) next »