I think utf-8 is without BOM, utf-8 BOM is with BOM:
sorry I don't know how to get this image any better but it is just readable.
I think utf-8 is without BOM, utf-8 BOM is with BOM:
sorry I don't know how to get this image any better but it is just readable.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
I'll agree with torvista.
Besides, using your "UTF-8-BOM actually means UTF-8 minus or without BOM" logic, why are you being selective about the hyphen - why not read it as "UTF without 8 without BOM"?![]()
UFT8 and UTF-8 are the same thing, so UTF-8-BOM should be UTF8BOM, it's just easier to read with the hyphen.
Just my 2c...
As torvista and balihr indicated, when using Notepad++ the Encoding tab should be set to UTF-8 when writing any sort of PHP code (whether Zen Cart or other).
That's UTF-8 without BOM (byte-order mark), while Notepad++'s UTF-8 BOM includes the BOM.
Thanks Steve
For future reference I would really appreciate if you could tell how you actually generated that image:
2022-10-23 09_31_24-new 1 utf-8.txt _--_ new 1 utf-8 bom.txt - Hex Compare - Beyond Compare.jpg
I gather from the image title that you did a screen dump of a hex compare using Beyond Compare software, however I do not possess that software and the nearest software I have ATM is an embarrassingly old version of WinMerge. While I have yet to discern whether my WinMerge version has a hex compare function. I expect to upgrade my WinMerge to the 2022 version within a week or so.
Do the letters printed in red actually represent the letters BOM, which to my eyes they do not, or is that byte order mark coding generated by the encoding?
Did you type in any gobbledegook to do the compare and did you compare actual code?
Best Regards
@dw08gm, you could try EditPad Lite (https://www.editpadlite.com/), its a free download and has a mode (I'm pretty sure, I've got the Pro version) that will display a file in 'hexadecimal' mode, too.
I saved the same file of gibberish in the two formats and used Beyond Compare.how you actually generated that image:
Text compare said they were the same, HEX compare showed the difference, which is only the initial characters in red, which I assume is the BOM.
Then did a screen capture with Greenshot.
I find Beyond Compare indispensable and well worth the cost.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Thanks everyone for your input.
As a final note I add this self-explanatory link:
https://en.wikipedia.org/wiki/Compar...mparison_tools
The two major tools WinMerge and Beyond Compare have both been updated in 2022, having survived the vicissitudes of Covid-19 (at least for now).
Cheers