YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* JSONで日本語を扱う [#h0dc51e5]
use JSON;
$text = '日本語'; # JSO...
$text = Encode::decode('EUC-JP', $text); # JSO...
$json = to_json( [ $text, $text ], { utf8 => 1 } );# utf...
# utf...
Encode::from_to($json,'UTF8','EUC-JP'); # 文...
print "$json\n";
** 参考 [#h72cd146]
http://kawa.at.webry.info/200801/article_6.html
終了行:
* JSONで日本語を扱う [#h0dc51e5]
use JSON;
$text = '日本語'; # JSO...
$text = Encode::decode('EUC-JP', $text); # JSO...
$json = to_json( [ $text, $text ], { utf8 => 1 } );# utf...
# utf...
Encode::from_to($json,'UTF8','EUC-JP'); # 文...
print "$json\n";
** 参考 [#h72cd146]
http://kawa.at.webry.info/200801/article_6.html
ページ名: