#14674: StyledEdit Misreads UTF-8 Files as Something Else
---------------------------------------+----------------------------
Reporter: AGMS | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/StyledEdit | Version: R1/Development
Resolution: | Keywords: Encoding
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
---------------------------------------+----------------------------
Comment (by Pete):
Some more observations:
If you create a new text file, StyledEdit doesn't give you ''any''
encoding choice (all greyed out). When you save it, it gets tagged with
the '65535' encoding -- which apparently equates to UTF-8.
If you load that or any other file back into StyledEdit, the encoding menu
list is enabled, but trying to select anything but the already-selected
choice doesn't work!
If a file already has a valid be:encoding attribute (as text rather than
integer!) that will become StyledEdit's choice You can use addattr to set
the attribute, and StyledEdit will accept it.
This all seems rather useless... (:-/) If you're creating a text it might
well be for some purpose that requires, say, ISO-8859 encoding. So you
should be given that initial choice. Conversely, if a file happens to
have acquired the wrong encoding (as BeShareDocs.txt had, sokmehow), you
need to be able to fix it!
--
Ticket URL: <https://dev.haiku-os.org/ticket/14674#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.