Fix error where only the first byte of a trailing UTF-8 character was output
This commit is contained in:
parent
c0596d30ad
commit
2c4c559544
1 changed files with 1 additions and 1 deletions
|
@ -2053,7 +2053,7 @@ defmodule ExCoder do
|
|||
end
|
||||
end
|
||||
|
||||
def decode(<< first :: utf8, rest :: binary >>), do: << first >> <> decode rest
|
||||
def decode(str), do: String.first(str) <> decode String.slice str, 1, String.length str
|
||||
|
||||
|
||||
def decode(numeric, :numericmode) when is_number numeric do
|
||||
|
|
Loading…
Reference in a new issue