Bug 104534

Summary: [RFE] Upon saving a text file with unknown characters a more verbose error dialog should be shown
Product: [Applications] kate Reporter: Janne Pikkarainen <jaba>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Janne Pikkarainen 2005-04-25 17:12:19 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
OS:                Linux

My girlfriend occasionally needs to import lots of text from Word documents and other obscure sources to KDevelop by copying and pasting it. 

Normally this works ok, but if source document contains any characters not belonging to current character set (say, a Word smart quote), saving the current file in KDevelop fails, throwing an error dialog about illegal characters.

It would be very handy, if KDevelop could show the error dialog in a more verbose manner, something like

    .----------------------------------.
    | Saving file xxxxxxx.txt failed!  |
    | Reason: Illegal characters found |
    |                                  |
    |     [Show errors]  [Cancel]      |
    |__________________________________|

After clicking "Show errors" a new dialog should be shown. This dialog would tell and highlight the exact lines and reveal the lurking illegal characters.

    .---------------------------------.
    | Illegal character in line 357,  |
    | line 44.                        |
    |     [Next] [Previous] [Cancel]  |
    |_________________________________|

Clicking "Next" and "Previous" should behave just like a normal Search dialog, so text cursor should jump to the exact place of current error.

Credits for this idea goes to Jessika Penttinen.
Comment 1 Thiago Macieira 2005-04-26 04:58:31 UTC
Reassigning to the editor part.
Comment 2 Thomas Friedrichsmeier 2007-12-07 15:24:41 UTC

*** This bug has been marked as a duplicate of 89866 ***