Browse thread
[Caml-list] Supporting unicode in ocaml...
-
Jonathan Roewen
-
Richard Jones
-
Jonathan Roewen
- Peter Jolly
-
Jonathan Roewen
-
Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Peter Jolly <peter@j...> |
| Subject: | Re: [Caml-list] Supporting unicode in ocaml... |
Jonathan Roewen wrote: > Yes I did (as if you read closer, I did mention). But being able to > use actual utf8 rather than manually encoding characters in the string > is what would be nice. Maybe I just need a script to preprocess > sources in utf8... AFAIK, all you need to do is get rid of the BOM, which is redundant in UTF-8 anyway. I have no problems at all using UTF-8 encoded string constants in OCaml, and Camomile's UTF8 module then handles them seamlessly. YMMV. (There is one minor issue, which is that there are legal OCaml identifiers which become illegal when the file is encoded in UTF-8 -- namely those that use accented letters.)