From 0d1f9ff76aa6df3f17edd2d73c76ab444fec8528 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 2 Jan 2017 17:56:04 +0100 Subject: Corrected some issues with odf documents --- UTF8.mli | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'UTF8.mli') diff --git a/UTF8.mli b/UTF8.mli index c1fa400..9e957ac 100755 --- a/UTF8.mli +++ b/UTF8.mli @@ -16,7 +16,12 @@ val decode: string -> t val from_utf8string: string -> t (** Encode to the string to the user locale *) -val encode: t -> string +val encode: t -> string option + +(** Encode the string. + This function may raise Text.Invalid if the string cannot be encoded in current locale +*) +val raw_encode: t -> string val to_utf8string: t -> string -- cgit v1.2.3