Re: Unicode character not displayed correctly

"Sebastien Mondet [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CALScVYnHdKZEgh0sn=9TWRMvZ8EFbCOnd+sm9TuSb3ZPHb5afw@mail.gmail.com>
Assuming your terminal is UTF-8 should use the UTF-8 encoding of the
character not the Unicode "number" (which is more like an identifier):


http://www.fileformat.info/info/unicode/char/0b67/index.htm

utop # printf "\xe0\xad\xa7";;

୧- : unit = ()







On Sun, Jul 5, 2015 at 11:06 AM, [email protected] [ocaml_beginners]
<[email protected]> wrote:

>
>
>  I wish to display the U+0B67 character in OCaml, so I type :
>
> # let s2="\x0B\x67";;
> val s2 : string = "\011g"
> # print_string s2;;
>
> g- : unit = ()
>
>
>  why is it displayed as a « g » ? What is the range of characters
> correctly displayed with OCaml ?
>
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.