Home  >  Article  >  Backend Development  >  Configuration in thinkphp: Where does 'DEFAULT_CHARSET' take effect?

Configuration in thinkphp: Where does 'DEFAULT_CHARSET' take effect?

WBOY
WBOYOriginal
2016-08-04 09:21:06991browse

I configured 'DEFAULT_CHARSET' ="utf-8" globally,

But it seems that the specific method still needs to be set again. Why?

Reply content:

I configured 'DEFAULT_CHARSET' ="utf-8" globally,

But it seems that the specific method still needs to be set again. Why?

Set in php.ini

or

Entry file index.php and the like
ini_set('default_charset','utf-8')

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn