Skip to content

Instantly share code, notes, and snippets.

@ojimac
Created June 6, 2012 09:52
Show Gist options
  • Save ojimac/2881010 to your computer and use it in GitHub Desktop.
Save ojimac/2881010 to your computer and use it in GitHub Desktop.
EUC-JP -> UTF-8変換時の旧漢字文字化け対応...
<?php
mb_convert_encoding(mb_convert_encoding($str, 'sjis-win', 'eucjp'), 'UTF-8', 'sjis-win');
@ojimac
Copy link
Author

ojimac commented Jun 6, 2012

@camelmasa
Copy link

文字化けとか懐かしいね!

@ojimac
Copy link
Author

ojimac commented Jun 6, 2012

某レガシー環境にて...
泥臭いね><

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment