Re: Unicode character not displayed correctly

"Doyle Jonathan [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
It works, thx ...

      De : "Sebastien Mondet [email protected] [ocaml_beginners]" <[email protected]>
 À : [email protected] 
 Envoyé le : Dimanche 5 juillet 2015 17h20
 Objet : Re: "ocaml_beginners"::[] Unicode character not displayed correctly
   
    
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 ?



  #yiv6084745541 #yiv6084745541 -- #yiv6084745541ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv6084745541 #yiv6084745541ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv6084745541 #yiv6084745541ygrp-mkp #yiv6084745541hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv6084745541 #yiv6084745541ygrp-mkp #yiv6084745541ads {margin-bottom:10px;}#yiv6084745541 #yiv6084745541ygrp-mkp .yiv6084745541ad {padding:0 0;}#yiv6084745541 #yiv6084745541ygrp-mkp .yiv6084745541ad p {margin:0;}#yiv6084745541 #yiv6084745541ygrp-mkp .yiv6084745541ad a {color:#0000ff;text-decoration:none;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ygrp-lc {font-family:Arial;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ygrp-lc #yiv6084745541hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ygrp-lc .yiv6084745541ad {margin-bottom:10px;padding:0 0;}#yiv6084745541 #yiv6084745541actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv6084745541 #yiv6084745541activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv6084745541 #yiv6084745541activity span {font-weight:700;}#yiv6084745541 #yiv6084745541activity span:first-child {text-transform:uppercase;}#yiv6084745541 #yiv6084745541activity span a {color:#5085b6;text-decoration:none;}#yiv6084745541 #yiv6084745541activity span span {color:#ff7900;}#yiv6084745541 #yiv6084745541activity span .yiv6084745541underline {text-decoration:underline;}#yiv6084745541 .yiv6084745541attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv6084745541 .yiv6084745541attach div a {text-decoration:none;}#yiv6084745541 .yiv6084745541attach img {border:none;padding-right:5px;}#yiv6084745541 .yiv6084745541attach label {display:block;margin-bottom:5px;}#yiv6084745541 .yiv6084745541attach label a {text-decoration:none;}#yiv6084745541 blockquote {margin:0 0 0 4px;}#yiv6084745541 .yiv6084745541bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv6084745541 .yiv6084745541bold a {text-decoration:none;}#yiv6084745541 dd.yiv6084745541last p a {font-family:Verdana;font-weight:700;}#yiv6084745541 dd.yiv6084745541last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv6084745541 dd.yiv6084745541last p span.yiv6084745541yshortcuts {margin-right:0;}#yiv6084745541 div.yiv6084745541attach-table div div a {text-decoration:none;}#yiv6084745541 div.yiv6084745541attach-table {width:400px;}#yiv6084745541 div.yiv6084745541file-title a, #yiv6084745541 div.yiv6084745541file-title a:active, #yiv6084745541 div.yiv6084745541file-title a:hover, #yiv6084745541 div.yiv6084745541file-title a:visited {text-decoration:none;}#yiv6084745541 div.yiv6084745541photo-title a, #yiv6084745541 div.yiv6084745541photo-title a:active, #yiv6084745541 div.yiv6084745541photo-title a:hover, #yiv6084745541 div.yiv6084745541photo-title a:visited {text-decoration:none;}#yiv6084745541 div#yiv6084745541ygrp-mlmsg #yiv6084745541ygrp-msg p a span.yiv6084745541yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv6084745541 .yiv6084745541green {color:#628c2a;}#yiv6084745541 .yiv6084745541MsoNormal {margin:0 0 0 0;}#yiv6084745541 o {font-size:0;}#yiv6084745541 #yiv6084745541photos div {float:left;width:72px;}#yiv6084745541 #yiv6084745541photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv6084745541 #yiv6084745541photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv6084745541 #yiv6084745541reco-category {font-size:77%;}#yiv6084745541 #yiv6084745541reco-desc {font-size:77%;}#yiv6084745541 .yiv6084745541replbq {margin:4px;}#yiv6084745541 #yiv6084745541ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv6084745541 #yiv6084745541ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv6084745541 #yiv6084745541ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv6084745541 #yiv6084745541ygrp-mlmsg select, #yiv6084745541 input, #yiv6084745541 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv6084745541 #yiv6084745541ygrp-mlmsg pre, #yiv6084745541 code {font:115% monospace;}#yiv6084745541 #yiv6084745541ygrp-mlmsg * {line-height:1.22em;}#yiv6084745541 #yiv6084745541ygrp-mlmsg #yiv6084745541logo {padding-bottom:10px;}#yiv6084745541 #yiv6084745541ygrp-msg p a {font-family:Verdana;}#yiv6084745541 #yiv6084745541ygrp-msg p#yiv6084745541attach-count span {color:#1E66AE;font-weight:700;}#yiv6084745541 #yiv6084745541ygrp-reco #yiv6084745541reco-head {color:#ff7900;font-weight:700;}#yiv6084745541 #yiv6084745541ygrp-reco {margin-bottom:20px;padding:0px;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ov li a {font-size:130%;text-decoration:none;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv6084745541 #yiv6084745541ygrp-sponsor #yiv6084745541ov ul {margin:0;padding:0 0 0 8px;}#yiv6084745541 #yiv6084745541ygrp-text {font-family:Georgia;}#yiv6084745541 #yiv6084745541ygrp-text p {margin:0 0 1em 0;}#yiv6084745541 #yiv6084745541ygrp-text tt {font-size:120%;}#yiv6084745541 #yiv6084745541ygrp-vital ul li:last-child {border-right:none !important;}#yiv6084745541
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.