Hi, I'm developing a Rails 3 application using HAML and Ruby 1.9.2
I'm a french speaker and I'm getting "incompatible character encodings: UTF-8 and ASCII-8BIT" errors when I use accented characters. It works fine when the text is loaded from my DB, but not when it is written directly. So for example, a simple HAML template like this doesn't work : %h1 Remboursé I have the exact same issue in a controller. If I do : def index puts "remboursé" end To correct this I have to add # encoding: utf-8 at the top of my controller. How can I do the same with HAML? Thanks! -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
