apache的认证授权方式如何支持中文姓名?
在windows平台中,用xampp搭建好环境,采用mod_auth_mysql.so来进行认证
配置信息如下:
<Directory "C:/xampp/htdocs/phpwind">
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
.htacess内容如下:
AuthName "test"
AuthType Basic
require valid-user
AuthUserFile /dev/null
AuthBasicAuthoritative Off
AuthMySQLEnable On
AuthMySQLHost localhost
AuthMySQLPort 3306
AuthMySQLUser pw
AuthMySQLPassword pw
AuthMySQLDB pw
AuthMySQLUserTable pw_members
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLNoPasswd Off
AuthMySQLPwEncryption MD5
AuthMySQLAuthoritative On
输入英文帐号,正常
输入中文帐号,则不能成功。比如说输入 张三,error log如下:
[Fri Aug 31 14:40:39 2007] [error] [client 192.168.35.152] MySQL user \xd5\xc5\xc8\xfd not found: /phpwind/
怎样才可以让apache支持中文名称的认证?
非常感谢!!