[ragel-users] ragel and encodings

Robert Lemmen 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?

cu  robert

Robert Lemmen                               http://www.semistable.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090521/c42b48d3/attachment-0001.sig>

More information about the ragel-users mailing list