Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,没法设置charset #32

Open
pulo opened this issue Jun 23, 2014 · 7 comments
Open

您好,没法设置charset #32

pulo opened this issue Jun 23, 2014 · 7 comments

Comments

@pulo
Copy link

pulo commented Jun 23, 2014

n 44 ifc _prcpk 9 _42

@aui
Copy link
Owner

aui commented Jun 23, 2014

nodejs 不支持gbk的字符集,只支持asciiutf8,这里目前还没有找到好的解决方案。

建议模板使用utf-8,并且"minify":true,这样编译后的脚本也能兼容gbk页面

@pulo
Copy link
Author

pulo commented Jun 23, 2014

追加下刚才的问题
我minify为true ,combo 为false
结果template.js是把中文转换成&#34了
可 独立的JS文件没有被转换 还是中文

@aui
Copy link
Owner

aui commented Jun 24, 2014

确认中文编码问题:某个版本更新uglifyjs模块的时候这个特性被略过了。正在修复中

@aui
Copy link
Owner

aui commented Jun 24, 2014

npm tmodjs@1.0.1-rc5 已经修复压缩后中文编码的问题

@pulo
Copy link
Author

pulo commented Jun 24, 2014

好的 谢谢

@pulo pulo closed this as completed Jun 24, 2014
@pulo
Copy link
Author

pulo commented Jun 26, 2014

追问下 iconv-lite能解决你的编码问题吗?目前我们这里是用iconv来解决编码问题的

@pulo pulo reopened this Jun 26, 2014
@aui
Copy link
Owner

aui commented Jun 26, 2014

我参考下

@aui aui mentioned this issue Jul 4, 2014
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants