我採取與一些法國字符標記一個博客。我的問題是關於如何處理url中的空間和Unicode(UTF-8)字符做。Unicode的問題與acts_as_taggable_on_steroids
比方說,我有一個名爲標籤:ohlàlà!我的標籤雲中有以下代碼:
<%= link_to h(tag.name.capitalize), { :controller => :blog, :action => :tag, :id => h(tag.name) }, :class => css_class %>
我該如何處理這個問題?
編輯我的答案。它現在引用* Unicode和永久鏈接*。 – gimel 2008-10-13 11:29:55