|
From: SourceForge.net <no...@so...> - 2008-12-03 06:52:52
|
Bugs item #2381509, was opened at 2008-12-02 22:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2381509&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: editor core Group: normal bug Status: Open Resolution: None Priority: 5 Private: No Submitted By: Suresh Mani (smani2000) Assigned to: Nobody/Anonymous (nobody) Summary: Character encoding error doesn't report line number Initial Comment: Dear JEdit Developers, I would like to report an issue in the world's best editor. When I load a file which has a character encoding issue, I get an I/O Error dialog box that shows the following message: "The following I/O operation could not be completed: c:\temp\test.txt The file could not be loaded correctly (some data might be lost) with encoding "Cp1252". (java.nio.charset.UnmappableCharacterException: Input length = 1) 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. But if I open my file "text.txt" that has a character encoding problem in a different editor like plain and simple windows notepad.exe, - the do "Select All" - copy the entire contents of the file to clipboard - then open a new file in JEdit - then paste the contents of the clipboard in JEdit - do save as in JEdit - try saving it as c:\temp\test2.txt - JEdit throws the following error: The following I/O operation could not be completed: c:\temp\test2.txt Cannot save: java.nio.CharacterConversionException: Failed to encode the character 'some_junk_character_is_shown' (U+FFFD) at column 85 in line 456 with the encoding "Cp1252". Do you see the difference? When opening a file that has a character encoding issue, JEdit does not show the line and column numbers. But when you try to do a "save as" on a file that has a character encoding issue, JEdit actually tells you the line and column number that contain the problematic character. I would really appreciate if you could make JEdit point out the line and column numbers of problematic characters while loading files (that have such character encoding issues). Thanks a million Suresh ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2381509&group_id=588 |