Erlang lists with single numbers over 8?

后端 未结 3 761
说谎
说谎 2020-12-02 00:45

in some weird way all the numbers over 8, single, in a list becomes some kind of ascii?

[8] -> [\"\\b\"]

Please tr

3条回答
  •  天命终不由人
    2020-12-02 01:25

    print it with ~w instead of ~p, and your issue should go away.

    ~p tries to interpret the elements in the list as ascii. ~w does not

提交回复
热议问题