[ragel-users] ragel and encodings
robertle at semistable.com
Thu May 21 17:48:20 UTC 2009
On Thu, May 21, 2009 at 11:34:35AM -0400, Wil Macaulay wrote:
> Depends on your platform, but my approach to this problem (on the Mac)
> was to detect
> the encoding, and convert to UTF-8 before parsing. I also converted
> line-endings (\r\n -> \n)
> and ensured a newline at the end of the data at the same time.
how do you handle utf-8 in your ragel code? do you use a single-byte
alphtype and then handle the utf-8 sequences manually?
Robert Lemmen http://www.semistable.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the ragel-users