yuweijun'blog
Friday, February 09, 2007
Rails 1.2.1 RHTML GB2312编码错误
Rails升级到1.2.1后,RHTML文件中的LINK_TO链接里有中文时,页面编译报错,需要在Config/environment.rb中最后面加$KCODE="GB2312",RHTML用GB2312编码,Application中headers中设置Content-Type为GB2312。
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment