Echo & quot; Hello & quot; the output is garbled, which is written below. Add & amp; lt; metahttp-equiv & quot; Content-Type & quot; content & quot; texthtml; charsetutf-8 & quot; & amp; gt; To html; add header (& quot; Content-Type: texthtml; charsetutf-8 & quot;); apache configuration file... echo "hello" outputs garbled characters, which are written below.
- Add in html
- Add header ("Content-Type: text/html; charset = UTF-8") to php ");
- AddDefaultCharset UTF-8 in the apache configuration file
Can it be garbled? What is the possibility?
Reply content:
Echo "hello" outputs garbled characters, which are written below.
- Add in html
- Add header ("Content-Type: text/html; charset = UTF-8") to php ");
- AddDefaultCharset UTF-8 in the apache configuration file
Can it be garbled? What is the possibility?
PHP file encoding should also be set to UTF-8