adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Brackets doesn't show the text if the text is mixed utf8 and utf16 #15189

Open beatrixwillius opened 4 years ago

beatrixwillius commented 4 years ago

Prerequisites

Steps to Reproduce

I'm a software developer. My app writes session logs. Those can contain a diagnosis for a database. I never noticed that I had mixed utf8 and utf16 data because I was always using TextEdit for macOS which can show the text fine. Now on macOS BS such a text made TextEdit crash. Brackets with the same text file doesn't crash. But it doesn't show any text beyond the BOM for the utf16 text.

Expected behavior: Show all text.

Actual behavior: Only beginning of text in utf8 shown.

Versions

macOS BS beta 2 Brackets: Release 1.13 Build 1.13.0-17696 (release 49d29a8bc) Session_Log_2020-07-17_18-15-48_0.txt

ravenclaw900 commented 4 years ago

Brackets does not currently support UTF-16 encoding.