使用缓存时Rails字符编码问题

我使用rails fragemnet缓存来缓存一些html。

以下是我的代码

 'pageui', :action_suffix => "#{@link.id}_tags") do %>   0 %>  tag.id), :title => tag.name, :target => "_blank" %>    Still no tag for this Page.  

我遇到了一些奇怪的问题。 第一次没有缓存的fragement时,它会出现错误“不兼容的字符编码:UTF-8和ASCII-8BIT”

但后续请求工作正常。 只有第一个请求才会出错。

任何提示?