#6447: StyledEdit doesn't check for valid utf-8 ---------------------------------------+------------------------------------ Reporter: zooey | Owner: korli Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/StyledEdit | Version: R1/alpha2 Keywords: | Blocked By: Has a Patch: 0 | Platform: All Blocking: | ---------------------------------------+------------------------------------ If you use StyledEdit to open a file that doesn't contain utf-8 but text encoded in a different charset, BTextView will get confused about the character widths and strange things will happen when editing near the bogus characters. Easily reproducible with /boot/system/data/Canna/default/default.canna. So I guess StyledEdit (and the file-based BTextView::SetText()) should check the file content for being valid utf-8 and complain if it isn't. -- Ticket URL: <http://dev.haiku-os.org/ticket/6447> Haiku <http://dev.haiku-os.org> Haiku - the operating system.