Det är precis det jag gör.
i head:
i application.rb
MySQL-tabellerna är satta till UTF-8 också..
i head:
Code:
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
Code:
after_filter :set_charset
def set_charset
content_type = @headers["Content-Type"] || 'text/html'
if /^text\//.match(content_type)
@headers["Content-Type"] = "#{content_type}; charset=utf-8"
end
end
Upptäckte att mitt DW inte alls var inställt på UTF-8. Tack för hjälpen!
Comment