aboutsummaryrefslogblamecommitdiffstats
path: root/lib/stdlib/test/escript_SUITE_data/unicode6
blob: 8027a2a08cd0c67d7bd60c0d61afe1bd6974a67c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                           
#!/usr/bin/env escript
%% -*- erlang -*-
%%! +pc unicode
-export([main/1]).
%% -*- encoding:utf-8 -*-

main(_) ->
    ok = io:setopts([{encoding,unicode}]),
    Bin1 = <<"örn_Ѐ שלום-שלום+של 日本語">>,
    L = [246,114,110,95,1024,32,1513,1500,1493,1501,45,1513,1500,1493,
         1501,43,1513,1500,32,26085,26412,35486],
    L = unicode:characters_to_list(Bin1, utf8),
    ok.