Created
June 6, 2012 09:52
-
-
Save ojimac/2881010 to your computer and use it in GitHub Desktop.
EUC-JP -> UTF-8変換時の旧漢字文字化け対応...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mb_convert_encoding(mb_convert_encoding($str, 'sjis-win', 'eucjp'), 'UTF-8', 'sjis-win'); |
文字化けとか懐かしいね!
某レガシー環境にて...
泥臭いね><
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考) http://www.softel.co.jp/blogs/tech/archives/2526