Fix debugger crashes caused by non-UTF-8 characters
This seems like an adapter issue and not something we should be dealing with on our side. Which adapter are you using and what are you doing that causes it to send non utf-8 characters?
I working on a new Lua adapter which works fine on vscode
I'm not sure why we would try to work around this on our side and not fix the adapter? Is the adapter actually sending utf8 or is it sending stuff in the wrong encoding?
Yes, in Lua adpater something will send non-utf8 characters. I thought SublimeDebugger may not support non-utf8 but it shouldn't raise a error.
SublimeDebugger may not support non-utf8 but it shouldn't raise a error.
The debug adapter protocol explicitly requires utf8 encoded content. If your adapter followed the protocol you wouldn't be getting an error.
See https://microsoft.github.io/debug-adapter-protocol/overview