PHP Warning: htmlspecialchars(): charset `euc_kr' not supported, assuming utf-8 in
Error 예시)
1] htmlspecialchars(iconv('euc-kr','utf-8',$string))
2] htmlspecialchars($string)
위 형태로 코딩할 때 주로 나타나는 것 같음.
Error 해결 예시)
// Good!
htmlspecialchars(iconv("euc-kr", "utf-8",$string),ENT_QUOTES,'ISO-8859-1');
htmlspecialchars($string,ENT_QUOTES,'ISO-8859-1');
'Language > PHP' 카테고리의 다른 글
PHP Warning: Creating default object from empty value in (0) | 2020.03.10 |
---|---|
PHP Fatal error: Cannot use isset() on the result of an expression (0) | 2020.03.09 |
PHP Warning: Use of undefined constant string - assumed 'string' (0) | 2020.03.09 |
PHP Warning: Invalid argument supplied for foreach() in (0) | 2020.03.09 |
PHP Warning: Illegal string offset ' ' in (0) | 2020.03.09 |