What Ruby version are you using? Chances are your file is not actually UTF-8 encoded, and your OS isn't properly telling Ruby what the encoding is (e.g. by setting the locale to something appropriate). What happens if you run IRB and do Encoding.default_external?
On Mon, Nov 22, 2010 at 4:06 AM, José Mota <[email protected]> wrote: > It seems something is wrong with UTF8 encoded files being interpreted > in Haml. A basic html2haml command is throwing me ` Invalid UTF-8 > character "\xE7" `. > Am I missing something or has it happened with more than just me? > > -- > 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] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- 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.
