Community
    • Login

    automaticly changing hex00 into hex20 - why?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 2.7k Views 1 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.
    • Klaus LehmannK Offline
      Klaus Lehmann
      last edited by

      Hi,
      since many years there’s a feature: in file are some hex20.
      if I’m copying or removing line, blocks or anything else, the editor ist changing them all to hex20 (a normal blank). but I do need my special blanks in form of hex00. I do need them really! ;-)

      is it above a automatic feature? can we do one setting, were we can put it off?
      every time I have this problem, I must use CRiSP. CRiSP doesn’t kill me my hex00-signs ;-)

      Thanks a lot, Yours Klaus

      Meta ChuhM 1 Reply Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @Klaus Lehmann
        last edited by

        @Klaus-Lehmann

        you have to use the special copy/paste in np++ for binary, non ascii or mixed contents:

        menu bar > edit > paste special > copy binary content
        and
        menu bar > edit > paste special > paste binary content

        if you need it often, you can set a custom keyboard shortcut on copy and paste binary content

        1 Reply Last reply Reply Quote 1
        • guy038G Offline
          guy038
          last edited by

          Hi, @klauss-lehmann and All,

          Additional information to the excellent method of @meta-chuh :

          • Firstly, contrary to any other character, you cannot insert NUL characters, either, with any of these 3 ways :

            • Alt + nnn , where n are digits, pressed on the numeric keypad ( OEM encoding )

            • Alt + 0nnn , where 0 and n are digits, pressed on the numeric keypad ( ANSI encoding )

            • Alt + the + ( on Numeric keypad ) + hhhh, where h are hexadecimal chars ( UNICODE encoding ) :

              • The letters, from a to f, typed on the main keyboard

              • The digits, from 0 to 9, typed on the numeric keypad

          So, the only way is to use the Character Panel ( Edit > Character Panel ) and, then, to double-click on the first line 0 00 NULL in order to insert a single NUL character, at cursor location


          Secondly, the present regex engine of N++, can handle the NUL characters in search, without any trouble, using the regexes :

          \0 or \x00 or \x{00} or \x{0000} or \N{NUL} or \c@ or \c

          Unfortunately, in replacement, there’s, indeed, no mean to insert a NUL character :-(( A work-around is possible, using a local installation of N++ v6.9.0 and a modified version of the Scintilla library ( SciLexer.dll ). Refer to LAST part of this FAQ post :

          https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 1

          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