BUG with characters in extended character set
-
Seems to work for me.
Would you mind sharing a screenshot? -
@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.
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) -
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:
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.
-
@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-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.png -
@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. -
@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”… :-) -
@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.”
-
@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) :)
-
@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.
-
@Alan-Kilborn ah!!! Cool, well let me rephrase…your short term memory is great :)