jupyter-xeus/xeus

No throw when json dump

wangfenjin opened this issue · 3 comments

nljson would throw if there is invalid utf-8 encoding, would we set to replace or ignore?

nlohmann/json#1198

Hi team, do we have any update on this issue? If you have other suggestions maybe I can help to contribute the code.

I'm development a ClickHouse kernel https://github.com/wangfenjin/xeus-clickhouse using xeus, xeus will throw if there a invalid encoding string in the DB.

Hi, I don't think we want to force handling invalid utf-8 encoding with replace or ignore for all the kernels based on xeus. Passing an option to the kernel constructor (or server constructor) seems a more appropriate approach, what do you think?

Yeah that will be great! Thanks!