1223 次
1 に答える
1
Maybe it will just be enough if you change the Encoding of your website to UTF-8 via the header()
command:
header("Content-Type: text/html; charset=utf-8");
in PHP
or
<?xml version="1.0" encoding="utf-8" ?>;
at the top of your HTML template if you use one.
but if you definitely need to convert those chars to its specific html code, you should create your own function to replace the symbols which are not covered by htmlspecialchars()
as well.
于 2012-06-18T12:09:22.137 に答える