Community
    • Login

    Add one character, file becomes unloadable

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gordon ToddG Offline
      Gordon Todd
      last edited by

      I have used npp for ages to edit source code from an old text-based language and there’s always been a problem opening certain files - n++ launches with a blank screen and displays no error messages. I’ve updated to the latest version etc. to no avail.

      So, I’ve reduced it to the bare bones - two files containing only a single IBM line-drawing character (0xC4). File 1 is a 9-byte file with 9 consecutive instances of this character and opens fine, file 2 is a 10-byte file with 10 instances of the same character and won’t open.

      Adding CRLF or EOF at the end makes no difference. Moreover, saving a file which has opened blank results in a zero-byte saved file.

      I’ve countless other files which contain various line-drawing characters and some of them display properly, others as squares but they always save correctly, it’s just these few files that simply won’t open in npp (they open, but nothing is displayed).

      Any thoughts??

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Gordon Todd
        last edited by

        Hello @Gordon-Todd,

        I assume that autodetect character encoding is enabled.
        I would give it a try to check it with disabled auto-detection

        Settings->Preferences->Misc
        uncheck autodetect character encoding

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Gordon ToddG Offline
          Gordon Todd
          last edited by

          Thanks Claudia, that seems to have cured it :-)

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors