Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    962
    Plugin Contributions
    6

    Default UTF-8 without BOM 2022

    Is coding in zen cart still to be done in UTF-8 without BOM, or is plain UTF-8 now OK?

    In older versions of Notepad++ there used to be an encoding option of "UTF-8 without BOM". Now the only options are UTF-8 and UTF-8-BOM, where it is not clear to me whether UTF-8-BOM actually means UTF-8 minus or without BOM or something else.

    While I have yet to figure out how to test for BOM, my research into the matter has not yielded unequivocal results, with the online npp user manual and online forum being quite useless.

    So here I ask whether UTF-8-BOM in Notepadd++ is their way of writing "UTF-8 without BOM" or what?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,461
    Plugin Contributions
    29

    Default Re: UTF-8 without BOM 2022

    I think utf-8 is without BOM, utf-8 BOM is with BOM:
    Name:  2022-10-23 09_31_24-new 1 utf-8.txt _--_ new 1 utf-8 bom.txt - Hex Compare - Beyond Compare.jpg
Views: 53
Size:  22.0 KB
    sorry I don't know how to get this image any better but it is just readable.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  3. #3
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,443
    Plugin Contributions
    14

    Default Re: UTF-8 without BOM 2022

    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...
    Zen Cart Point of Sale? Sure: ZX POS - v2 released
    My site - Pro ZC Help | My portfolio | My plugins

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    11,388
    Plugin Contributions
    80

    Default Re: UTF-8 without BOM 2022

    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.

  5. #5
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    962
    Plugin Contributions
    6

    Default Re: UTF-8 without BOM 2022

    Quote Originally Posted by torvista View Post
    I think utf-8 is without BOM, utf-8 BOM is with BOM:
    Name:  2022-10-23 09_31_24-new 1 utf-8.txt _--_ new 1 utf-8 bom.txt - Hex Compare - Beyond Compare.jpg
Views: 53
Size:  22.0 KB
    sorry I don't know how to get this image any better but it is just readable.
    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

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    11,388
    Plugin Contributions
    80

    Default Re: UTF-8 without BOM 2022

    @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.

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,461
    Plugin Contributions
    29

    Default Re: UTF-8 without BOM 2022

    how you actually generated that image:
    I saved the same file of gibberish in the two formats and used Beyond Compare.
    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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto, Product Listing Sorter...

  8. #8
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    962
    Plugin Contributions
    6

    Default Re: UTF-8 without BOM 2022

    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

 

 

Similar Threads

  1. v157 Paypal Website Payments Pro Upgrade - 3D SECURE 2022
    By Nick1973 in forum PayPal Website Payments Pro support
    Replies: 59
    Last Post: 29 Oct 2022, 04:24 PM
  2. Hacktoberfest 2022
    By swguy in forum Code Collaboration
    Replies: 1
    Last Post: 24 Oct 2022, 03:30 AM
  3. v150 BOM idea
    By hubert in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 28 Feb 2016, 02:50 AM
  4. Hidden BOM throwing IE into quirks mode
    By phreakymonkey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2009, 03:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR