How to determine virtualhost charset
I need to find out at runtime what charset is currently used on virtu开发者_运维问答al host. E.g. it might be defined in .htaccess file (AddDefaultCharset directive) or in httpd.conf
I think you should bind to charset desired by client browser. Take a closer look at $_SERVER["HTTP_ACCEPT_CHARSET"]
.
精彩评论