Re: Avoiding encoding I/O Error
"Matthieu Casanova" <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, sorry for the late response : To detect if a file is binary, jEdit will first try to detect encoding with the standard encording detectors (BOM, XML, html, python ...), if unsucessful try to read the 100 first bytes of the file using default OS charset to detect null chars. If it found null char then it is considered as binary. About fallback encoding, it allows jEdit to try other encodings if the other solutions failed, but it seems it is not used during search, not sure why yet. -- Matthieu Casanova [email protected] Mar 16 mars 2021, à 05:45, Fisher, John a écrit : > Dear jedit-users mail list members, > > How can I avoid the following I/O Error? > > The following I/O operation could not be completed: > <filename>: > The file could not be loaded correctly (some data might be lost) with > the encoding "UTF-8,windows-1252". > (See details in Activity Log) > Try selecting a different encoding. > It can be selected with the menu File->Reload with Encoding. > If you want it to be done automatically, add the candidates into > "List of fallback encodings" in Encodings pane of Global Options. > > I would prefer to be able to search a large directory hierarchy that > may include arbitrary binary files and never see this error. I > particularly don't want to have to dismiss it multiple times. > > Is there an encoding that never fails that I could add to the fallback > encodings, such as an 8-bit one with all code points well defined? > > Regards > John Fisher > > This email message and any accompanying attachments may contain > information which is confidential. If you are not the intended > recipient then you must not read, use, disseminate, distribute or copy > this message or attachments. If you have received this message in error > then please notify the sender immediately and delete this message. Any > views expressed in this message are those of the individual sender > except where the sender expressly, and with authority, expresses them > to be the view of Team Telecom Group Ltd. Before opening any > attachments, please check them for viruses and defects. > > Team Telecom Group Ltd, Field House, Derby, DE1 1NH > > This message has been scanned for viruses & other malicious content. > > > > -- > ----------------------------------------------- > jEdit Users' List > [email protected] > https://lists.sourceforge.net/lists/listinfo/jedit-users > -- ----------------------------------------------- jEdit Users' List [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users