trivial encoder by 51b

-module(t).
-export([m/0]).
m()->S=io:get_line(''),if"e"<S->case length([io:format("~.16B",[C])||C<-io:get_line('')])of 230->io:format("A");_->0end;0<1->{_,[N]}=io:fread('',"~16u"),io:format(f(N))end.
f(0)->[];f(N)->f(N div 256)++[N rem 256].

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page