Rails 3.0.7缓存字体问题 [英] Rails 3.0.7 caching font issue

查看:161
本文介绍了Rails 3.0.7缓存字体问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序运行在Rails 3.0.7,精简版1.2.11和nginx 0.7.65上。我的网站的主索引页面有链接到我的简历,包括口音。页面呈现正常,但是,在初始视图之后,一旦页面被缓存,文本显示为Résumé。我完全不知道为什么会发生这种情况,是什么原因造成的?解决方案

我有同样的问题。通过在头部中加入:

 < meta http- equiv =content-typecontent =text / html; charset = UTF-8/> 


I have an application running on Rails 3.0.7, thin 1.2.11, and nginx 0.7.65. The main index page for my website has a link to my "résumé", accents included. The page is rendering fine, however, after the initial view, once the page is cached, the text is displayed as "Résumé". I have absolutely no idea why this is happening, what could be causing this?

解决方案

I had the same problem. Was solved by adding this in head:

<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 

这篇关于Rails 3.0.7缓存字体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆