Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Problem with a text file

  • Problem with a text file

    Posted by Ghiara Mimmo on March 17, 2020 at 4:27 pm

    Hello to all
    sevo register a text file and use a series of Begin text blocks and end text blocks to concatenate a night of ascii characters and names.
    Then I have to save it from disk and use
    Do lFileOps.$Writecharacter (kUniTypeUTF8, lritorno) Returns lError
    the return is a string
    I go to see the saved file and I see:
    A CUR200192059230489 TO
    B92059230489 00000001 01994550067 00 Condominium Margherita 1PTRDNA76P47F999B01PETRUCCI DAIANA 00000000000 0000000101 1170320201 TO
    What are the first three characters () I have not written them, I start from A
    I have tried several encodings but these three characters remain.
    Omnis Studio 8.0.3
    MAcOs operating system 10.11.6
    Is there any way to eliminate them?
    Thanks for the tips

    Ghiara Mimmo replied 3 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Klaus Schrödl

    March 17, 2020 at 6:13 pm

    Hi Mimmo,
    the three characters you see are the BOM (Byte Order Mark) often used in Unicode files.
    Non-Unicode capable editors or browsers display exactly the three characters you are quoting.
    More about it:
    So, if you really want to write UTF-8 Unicode, everything is fine.
    If you don’t need Unicode (and want to omit those characters), you have to use one of the ANSI encodings available i.e.


    which should be sufficent for your needs.

  • Ghiara Mimmo

    March 18, 2020 at 7:33 am

    Thank you

Log in to reply.