Skip to content

Instantly share code, notes, and snippets.

@dch
Forked from kuenishi/sushi.erl
Last active August 29, 2015 14:11
Show Gist options
  • Save dch/ae313770e829e5fed5c7 to your computer and use it in GitHub Desktop.
Save dch/ae313770e829e5fed5c7 to your computer and use it in GitHub Desktop.
$ escript sushi.erl
🍣
%% -*- coding: utf-8 -*-
-module(sushi).
-compile(export_all).
main(_)->
'🍣'().
'🍣'() ->
SushiBin = <<"🍣">>,
Sushi = unicode:characters_to_list(SushiBin),
ok = io:setopts([unicode]),
io:format("~ts~n", [Sushi]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment