awestruct/awestruct — pull request #161 by lance (2012-08-14 15:25:53+00:00)
Title: Add specs for UTF-8 character encoding

Issues have been reported with UTF-8 character encoding (e.g. Issue #158). These errors seem to occur only in 1.9 mode, and are a result of a change in the way Ruby handles character encoding in 1.9. Since awestruct isn't really making any assumptions about the encoding, it's up to the user to specify the encoding in their template files. So, for example, if your haml doc contains UTF-8 characters, you would add `-# coding: utf-8` as the first line of the haml file. Awestruct itself defaults to ASCII-8BIT encoding.