Created
February 7, 2014 04:49
-
-
Save takatoshiono/8857495 to your computer and use it in GitHub Desktop.
Smarty3 と mb_internal_encoding
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_internal_encoding('EUC-JP'); | |
// http://www.smarty.net/docs/en/charset.tpl | |
// define('SMARTY_RESOURCE_CHAR_SET', 'EUC-JP'); | |
require_once 'lib/smarty/Smarty.class.php'; // Smarty3 | |
print mb_internal_encoding() . "\n"; // => EUC-JP | |
$smarty = new Smarty(); | |
print mb_internal_encoding() . "\n"; // => UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment