HHC4003: Warning:The following option line does not contain an '=' character separating the option and its value: 锘縖OPTIONS]

来源:互联网 发布:软件测试方法app 编辑:程序博客网 时间:2024/05/24 01:12

原因是字符集不匹配,如果你的hhp文件的字符集是utf-8,而你要编译的文件夹中包含中文字符的时候,就会报hhc4003错误。虽然utf-8中包含中文字符,但是这边hhp创建时候要制定字符为GB2312或者是其他的。

 

解决方案:将创建时候的字符集改为GB2312,如下:

streamWriter = new System.IO.StreamWriter(fs, System.Text.Encoding.GetEncoding("GB2312"));
原创粉丝点击