caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Supporting unicode in ocaml...
@ 2006-08-18 23:37 Jonathan Roewen
  2006-08-19  9:05 ` Richard Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Roewen @ 2006-08-18 23:37 UTC (permalink / raw)
  To: OCaml

Hi,

Does the ocaml team ever plan on supporting unicode to some degree?

What about being able to parse utf-8 encoded files, but keeping the
ascii only grammar? Then with the only change that if it's a utf-8
file, that the utf-8 encoding of string constants are maintained. With
this scheme, you could theoretically bail on non-ascii characters
everywhere else. And a 3rd-party library like camomile could be used
for higher-level processing of the utf8-encoded string constants (from
the camomile docs, utf8 strings use the ocaml string type too).

I must admit that I have no idea how complex even a seemingly small
change like this may be, but at least the detection of the byte order
mark should make it a compatible change...

Jonathan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-19 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-18 23:37 [Caml-list] Supporting unicode in ocaml Jonathan Roewen
2006-08-19  9:05 ` Richard Jones
2006-08-19 11:02   ` Jonathan Roewen
2006-08-19 12:41     ` Peter Jolly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).