Paste Search Dynamic
Recent pastes
mb convert encoding
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $s_buf = 'テスト環境';
  6.  
  7. var_dump(mb_convert_encoding($s_buf, "UTF-8", "UTF-8"));
  8. var_dump(mb_convert_encoding($s_buf, "sjis-win", "UTF-8"));
  9. var_dump(mb_convert_encoding($s_buf, "UTF-8", "sjis-win"));
  10. var_dump(mb_convert_encoding($s_buf, "UTF-8", "ISO-8859-1"));
  11.  
  12.  
  13. ?>
Parsed in 0.010 seconds