Results 1 to 5 of 5

Thread: thinAir placing characters at beginning of file

  1. #1

    thinAir placing characters at beginning of file

    When a file is saved, the editor is placing unseen characters when displayed in the editor, but they are in the file physically. The characters are:

    

    I'm wondering if this is intentional. I removed the characters using another editor; however, when thinAir saved the file the next time, it put the characters back in. If it's intentional, why? And, if not, can we get it fixed?

    The characters in Hex are : EF BB BF
    Last edited by scottdiver; 10-04-2023 at 16:04.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,813
    Rep Power
    10
    Hi Scott,

    those 3 bytes are called BOM: Byte Order Mask
    Its presence indicates that the file has been encoded in UTF-8.

    https://en.wikipedia.org/wiki/Byte_order_mark
    https://stackoverflow.com/questions/...utf-8-with-bom

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Quote Originally Posted by ErosOlmi View Post
    Hi Scott,

    those 3 bytes are called BOM: Byte Order Mask
    Its presence indicates that the file has been encoded in UTF-8.

    https://en.wikipedia.org/wiki/Byte_order_mark
    https://stackoverflow.com/questions/...utf-8-with-bom

    Ciao
    Eros
    Wow, that was a quick response. Thank you. I feel like I should have known that.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,813
    Rep Power
    10
    Well ... recently I was not very present in forum due to heavy work load.
    But from time to time I'm here with others.

    Needs at work have let us develop new thinBasic features and very soon we will release a new thinBasic version.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    Quote Originally Posted by ErosOlmi View Post
    Well ... recently I was not very present in forum due to heavy work load.
    But from time to time I'm here with others.

    Needs at work have let us develop new thinBasic features and very soon we will release a new thinBasic version.
    That is awesome.

Similar Threads

  1. thinAir:File.ext'ensions...
    By ReneMiner in forum thinAir General
    Replies: 1
    Last Post: 19-02-2021, 08:42
  2. thinAir: File saving bug adding redundant characters, confuses git
    By Petr Schreiber in forum thinAir General
    Replies: 1
    Last Post: 18-12-2019, 18:32
  3. ThinAIR and assembler source file
    By RobertoBianchi in forum thinAir Tips and Tricks
    Replies: 0
    Last Post: 11-10-2006, 15:33

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •