mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
기본 charset = UTF-8
지정해버리기
This commit is contained in:
parent
264a5d3ef5
commit
0f21b1dfe3
1 changed files with 19 additions and 0 deletions
|
|
@ -52,6 +52,25 @@ define('_XE_PATH_', str_replace('config/config.inc.php', '', str_replace('\\', '
|
||||||
// Set can use other method instead cookie to store session id(for file upload)
|
// Set can use other method instead cookie to store session id(for file upload)
|
||||||
ini_set('session.use_only_cookies', 0);
|
ini_set('session.use_only_cookies', 0);
|
||||||
|
|
||||||
|
// Set default charset as UTF-8
|
||||||
|
$charset = 'UTF-8';
|
||||||
|
ini_set('default_charset', $charset);
|
||||||
|
|
||||||
|
if (function_exists('iconv_set_encoding') && version_compare(PHP_VERSION, '5.6', '<'))
|
||||||
|
{
|
||||||
|
iconv_set_encoding('internal_encoding', $charset);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (function_exists('mb_internal_encoding'))
|
||||||
|
{
|
||||||
|
mb_internal_encoding($charset);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (function_exists('mb_regex_encoding'))
|
||||||
|
{
|
||||||
|
mb_regex_encoding($charset);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(file_exists(_XE_PATH_ . 'config/package.inc.php'))
|
if(file_exists(_XE_PATH_ . 'config/package.inc.php'))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue