# How to access the module Uutf.String.UTF\_8

**URL:** <https://discuss.ocaml.org/t/how-to-access-the-module-uutf-string-utf-8/1434>\
**Category:** Learning\
**Created:** [January 16, 2018, 4:34pm UTC](https://discuss.ocaml.org/t/how-to-access-the-module-uutf-string-utf-8/1434 "2018-01-16T16:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dbuenzli](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/dbuenzli/32/18_2.png) [@dbuenzli](https://discuss.ocaml.org/u/dbuenzli)\
**Post date:** [January 16, 2018, 7:46pm UTC](https://discuss.ocaml.org/t/how-to-access-the-module-uutf-string-utf-8/1434/10 "2018-01-16T19:46:05Z")

</div>

> [@mguimas](#):
>
> For example, I am particularly interested in doing lexing and parsing of Unicode source texts.

An Uutf decoder works fine for this. It will do, encoding guessing, line normalization and scalar value position tracking for you. Some people prefer to use lexer generators, I don’t but you can have a look at [ulex](https://github.com/whitequark/ulex) if you are into that sort of things.

> [@mguimas](#):
>
> (Unicode hurts too much in OCaml. 😧)

Not more or less than in other languages I’m afraid. It’s not because that other language has a unicode string data structure that it’s not a [broken one](https://discuss.ocaml.org/t/ocaml-first-impressions/517/26)…

---

_[View the full topic](https://discuss.ocaml.org/t/how-to-access-the-module-uutf-string-utf-8/1434)._
