14

Hi I'm editing a csv file to use in my database. From some weeks when I open it with notepad++ I'm finding a bad characters at the end that broken my file like a CR.

I.e

"30-APR-2014","ELCO, ELCO","ELCOCESARBAD

Where bad is with black background (I have activate see all characters"

Anyone know how to solve it ?

4
  • I don't have an answer, but I have the same problem. In my case, the [BAD] symbol replaces a capital-en (N) letter. Jul 21, 2014 at 13:45
  • 2
    I solved the issue with TextFx plugin. If I run TextFx->TextFx Characters-> Zap all no printable characters to # I solved the issue replaceing the "strange" characters with #. I hope can help you
    – Antonio
    Jul 22, 2014 at 13:52
  • 8
    Known issue: Data corruption upon operations like Replace. Solution: disable auto backup. Settings > Preferences > Backup > (Uncheck) Enable session snapshot and periodic backup Mar 9, 2015 at 10:28
  • @UjjwalSingh Thanks a lot, I didn't know what was going on, That keeps Notepad++ from displaying "bad" all over the place when doing a find and replace.
    – RugerSR9
    Apr 3, 2015 at 15:34

1 Answer 1

15

The problem can occur during operations like Replace where an auto-backup happens mid operation. The solution is to disable auto-backup.

Settings > Preferences > Backup > Uncheck Enable session snapshot and periodic backup

[Credit to Ujjwal Singh for the solution]

1
  • To clarify: This explains what happened to OP's text file, and how to prevent it in future, but won't recover or repair the file.
    – Paul
    Nov 29, 2016 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.