Open normanjaeckel opened 5 months ago
My current workaround is that I copied some code from https://github.com/roc-lang/unicode to fix the wrong hexToUtf8
function in https://github.com/lukewilliamboswell/roc-json/blob/main/package/Json.roc#L1139. Should I make a pull request or do you prefer using the unicode lib in this case?
A PR would be great thank you for looking into this.
I ran into some issues while decoding some JSON with German letters like
ö
. I want to understand how this package work and I found this line.I think the test is wrong (and then also the implementation): The correct decoding of
Ɽ
(i. e.\u2c64
) is[226, 177, 164]
and not[44, 100]
as the test says. In my case I want to decode\u00f6
which should beö
, but the parser just fails.Maybe you want to test this as follows (I can not run the test according to #24 at the moment):
Thank you very much in advance.