multibyte_encoding_001.phpt 272 B

123456789101112131415
  1. --TEST--
  2. Zend Multibyte and ShiftJIS
  3. --EXTENSIONS--
  4. mbstring
  5. --INI--
  6. zend.multibyte=1
  7. internal_encoding=SJIS
  8. --FILE--
  9. <?php
  10. declare(encoding='Shift_JIS');
  11. $s = "•\"; // 0x95+0x5c in script, not somewhere else "
  12. printf("%x:%x", ord($s[0]), ord($s[1]));
  13. ?>
  14. --EXPECT--
  15. 95:5c