From 8afc205cc7183bf0bee05296cbdf1d0f4d4f3e11 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 26 Feb 2021 17:39:43 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E7=BB=88=E7=89=881.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eFmt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eFmt.erl b/src/eFmt.erl index f5c60e4..5ed02f8 100644 --- a/src/eFmt.erl +++ b/src/eFmt.erl @@ -224,7 +224,7 @@ writeList([], _Depth, _Width, _Encoding, _Strings) -> writeList(List, Depth, Width, Encoding, Strings) -> case Strings andalso visualList(List, Encoding) of true -> - <<"\"", (list_to_binary(List))/binary, "\"">>; + <<"\"", (unicode:characters_to_binary(List))/binary, "\"">>; _ -> writeList(List, Depth, Width, Encoding, Strings, 0, <<"[">>) end.