<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000066">
    <font face="Calibri">Hi,<br>
      <br>
      I am perplexed about this result:<br>
      <br>
      >         io:format("       ~s~nLatin: ~w~nUTF-8: ~w~nUTF-8
      list: ~s~nUTF-8 list: ~w~n", [<br>
      >         <<"ø">>,<br>
      >         <<"ø">>,<br>
      >         <<"ø"/utf8>>,<br>
      >        
      unicode:characters_to_list(<<"ø"/utf8>>,utf8),<br>
      >        
      unicode:characters_to_list(<<"ø"/utf8>>,utf8)    <br>
      >     ]).<br>
             ø<br>
      Latin: <<248>><br>
      UTF-8: <<195,184>><br>
      UTF-8 list: ø<br>
      UTF-8 list: [248]<br>
      ok     <br>
      <br>
      Should not unicode:characters_to_list return a list with Unicode
      code points?<br>
      <br>
      The docs say: "This function converts a possibly deep list of
      integers and binaries into a list of integers representing unicode
      characters."<br>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://www.erlang.org/doc/man/unicode.html#characters_to_list-2">http://www.erlang.org/doc/man/unicode.html#characters_to_list-2</a><br>
      <br>
      In other words, I'd expect as results:<br>
      <br>
             ø<br>
      Latin: <<248>><br>
      UTF-8: <<195,184>><br>
      UTF-8 list: bad argument<br>
      UTF-8 list: [50104]<br>
      ok<br>
      <br>
      Thanks,<br>
      Henning</font>
  </body>
</html>