« あら、 | Main | 雨が降り続いている »

PHPメモ

simplexmlを使い何も指定しないでasXMLで保存すると

とだけしか書き込まれないので、そのファイルを読み込むとマルチバイトが数値文字参照になるので下記のように記述してUTF-8ということを明示的にする。


simplexml_load_sting('' . $xml);


|
|

« あら、 | Main | 雨が降り続いている »

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/64149/45025696

Listed below are links to weblogs that reference PHPメモ:

« あら、 | Main | 雨が降り続いている »