monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Couldn't read UTF-16 LE string

Open zanecola opened this issue 9 years ago • 2 comments

monaco-editor version: 0.10.0 Browser: Chrome OS: OSX Steps or JS usage snippet reproducing the issue:

When I set value to monaco editor, if the string is UTF16LE encoded, then there will be some unreadable things in monaco. image

zanecola avatar Oct 30 '17 06:10 zanecola

@zanecat Encoding is something you need to deal with before you create a JavaScript string. i.e. you would have the same problem if you would use a simple <textarea> to display your data.

alexdima avatar Nov 14 '17 10:11 alexdima

Yep I noticed that it's my issue, sorry for this.

zanecola avatar Nov 15 '17 04:11 zanecola