From: Bernard D. <bde...@us...> - 2020-11-20 13:26:34
|
Hi James, thank you for the suggestion. The problem with the *file* command is that it is not sufficiently accurate and reliable. For instance, I tested it (with option `-I` to get a mime type) on a file encoded in macRoman and got: `text/plain; charset=unknown-8bit` I tested it on a file containing greek text written ISO-8859-7 and got : `text/plain; charset=iso-8859-1` (sic, 8859-1, not 8859-7). Same wrong result with a russian text in ISO8859-5. I'm afraid this would lead to wrong decisions that would be quite frustrating for the user. --- ** [tickets:#240] Encoding** **Status:** open **Created:** Sat Oct 24, 2020 07:43 AM UTC by James Connolly **Last Updated:** Sat Oct 24, 2020 07:46 AM UTC **Owner:** nobody Hello, first thanks for all the great work from a long term user (≈1997 on) ! A suggestion :Would it be possible to have a "Default encoding : Check file on open"? This "check file on open" would, upon opening a file, have Alpha check the file's (e.g. BSD "file" command) and use that. And only then open the "Encodings popup" if this fails. At present I have many files in ISO-8859 and the pop-up is working rather hard. And I'm not inclined to convert them all to UTF-8 in order to avoid further potential problems : if Alpha can handle ISO-8859, why not silently continue to do so where appropriate is my thinking. Cheers, James p.s. not files as "bug" nor "task" but as "RFE" which I hope means "suggestion". --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |