Community
    • Login

    BUG with characters in extended character set

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    12 Posts 4 Posters 875 Views
    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.
    • EkopalypseE
      Ekopalypse @Andrew McP
      last edited by

      @Andrew-McP

      Seems to work for me.
      Would you mind sharing a screenshot?

      80186f5d-6b85-4de7-8dbe-1ee700b3192b-image.png

      Andrew McPA 1 Reply Last reply Reply Quote 1
      • Andrew McPA
        Andrew McP @Ekopalypse
        last edited by

        @Ekopalypse Hi there! What steps did you take? I copy/pasted the file’s text from what I posted back into Notepad++ then clicked save and got the garbage that I show in the screenshot. screenshot.png

        My notepad version below. I don’t like how it says “ANSI codepage : 1252”. Does your Help->debug say similar?

        Notepad++ v8.4.6 (32-bit)
        Build time : Sep 25 2022 - 19:55:26
        Path : C:\Program Files (x86)\Notepad++\notepad++.exe
        Command Line :
        Admin mode : OFF
        Local Conf mode : OFF
        Cloud Config : OFF
        OS Name : Windows 10 Home (64-bit)
        OS Version : 21H1
        OS Build : 19043.2006
        Current ANSI codepage : 1252
        Plugins :
        combine (1)
        HTMLTag_unicode (1.3.5)
        mimeTools (2.8)
        NppConverter (4.4)
        NppExport (0.4)

        Alan KilbornA 1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn @Andrew McP
          last edited by Alan Kilborn

          @Andrew-McP

          If I paste some of your data into a virgin Notepad++ setup, I see the same “box” displayed as you do.

          However if I turn DirectWrite on in the Preferences > MISC. area and restart N++, all turns out well:

          f9ce44d1-cbc7-46fe-9b85-b4103ef1d498-image.png

          52834756-bdef-469b-86f1-f7557dc5307d-image.png

          BTW, I don’t actually think you had an invalid file when the “box” was showing. The character was there, correctly; Notepad++ just couldn’t show it to you.

          Andrew McPA 1 Reply Last reply Reply Quote 2
          • Andrew McPA
            Andrew McP @Alan Kilborn
            last edited by

            @Alan-Kilborn OMG well done!!! Fantastic discovery. All good now vis-a-vis Notepad++. I did indeed understand it was a display issue, because simple MS Notepad always shows it fine even after saving in notepad++.
            OFF topic bit:-
            But unfortunately my compiler (Beaver) still also shows garbage and therefore it won’t compile, so I guess it has similar issues. Beaver has the cheek to warn me I must save in UTF8 and then when I re-load it’s garbage…
            Sadly I have found no fix for Beaver, so am compiling using mysql in 1990’s command-line (Dos) mode haha :) One can always trust command-line. Actually it’s easier in a way, not having to pfaff around with mouse clicks…anyway I digress.

            Andrew McPA 1 Reply Last reply Reply Quote 1
            • Andrew McPA
              Andrew McP @Andrew McP
              last edited by Andrew McP

              @Andrew-McP Alan, it didn’t work 100%, as it has converted all single quotes into smart quotes as shown (they look terrific but sql compilers dont appreciate beauty). Anyways, 15s and 2 global replaces later and all is good …thanks again.
              Untitled.pngUntitled.png

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Andrew McP
                last edited by PeterJones

                @Andrew-McP said in BUG with characters in extended character set:

                as it has converted all single quotes into smart quotes as shown

                No, the forum converted all the single quotes into smart quotes, because when you pasted the original data into the forum, you didn’t use the </> button on the toolbar to mark your text as “code” or “literal text”, as described in the Formatting Forum Posts FAQ. And when you copied the text back out of the forum, you copied the displayed smart-quotes instead of the original ASCII quotes.

                Alan KilbornA 1 Reply Last reply Reply Quote 2
                • Alan KilbornA
                  Alan Kilborn @PeterJones
                  last edited by

                  @PeterJones said in BUG with characters in extended character set:

                  And when you copied the text back out of the forum

                  I don’t know if this tracks.
                  If someone owns the original source, why would they need to copy it back?
                  Unless…they thought the original source was corrupted because it was displayed improperly…and, well the forum is showing it correctly, so the data there must be “better”… :-)

                  PeterJonesP Andrew McPA 2 Replies Last reply Reply Quote 1
                  • PeterJonesP
                    PeterJones @Alan Kilborn
                    last edited by

                    @Alan-Kilborn said in BUG with characters in extended character set:

                    If someone owns the original source, why would they need to copy it back?

                    True. I guess I should have phrased it, “I am assuming you copied the text back out of the forum, because Notepad++ will not natively convert ASCII quotes into smart quotes, and that’s the only path I could think of that would have caused that conversion without intentional action on your part.”

                    1 Reply Last reply Reply Quote 0
                    • Andrew McPA
                      Andrew McP @Alan Kilborn
                      last edited by

                      @Alan-Kilborn and Peter it’s my bad. I didn’t see the “dont format in forum” icon or read the notes :) sorry have been really busy getting my weather project going and didn’t apply due diligence,. I wrongly assumed the data would be unformatted in the forum.

                      Well I dont feel a complete fool as what Alan picked out as a solution to those darn Celsius symbols was akin to finding a needle in a haystack (so glad you mentioned in was in Misc) :)

                      Alan KilbornA 1 Reply Last reply Reply Quote 1
                      • Alan KilbornA
                        Alan Kilborn @Andrew McP
                        last edited by

                        @Andrew-McP said in BUG with characters in extended character set:

                        what Alan picked out as a solution to those darn Celsius symbols was akin to finding a needle in a haystack

                        Before you think I’m “smart” again, this sort of issue comes up all the time, so I know the right advice to give, at least as a first thing to try.

                        Andrew McPA 1 Reply Last reply Reply Quote 0
                        • Andrew McPA
                          Andrew McP @Alan Kilborn
                          last edited by

                          @Alan-Kilborn ah!!! Cool, well let me rephrase…your short term memory is great :)

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors