• How do I create a file in Ansi format?

    From Jafar@21:1/5 to All on Fri Nov 24 08:25:40 2023
    I am trying to change the way ini files created in an application since they are created as utf8 by default which causes problems when writing to these ini files.

    I tried several things like calling SetAnsi with a true flag, but nothing seems to help.

    Does anyone know how I can change the encoding of a file from UTF8 to Ansi?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JohnMartens@21:1/5 to All on Fri Nov 24 18:33:27 2023
    Hi Jafar,

    This works for me:

    SetAnsi(TRUE)
    MemoWrit(cFileNmIni,cContent)

    The memowrit( help page tells more about Ansi

    Does this help you ?

    John


    Op 24-11-2023 om 17:25 schreef Jafar:
    I am trying to change the way ini files created in an application since they are created as utf8 by default which causes problems when writing to these ini files.

    I tried several things like calling SetAnsi with a true flag, but nothing seems to help.

    Does anyone know how I can change the encoding of a file from UTF8 to Ansi?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jafar@21:1/5 to All on Mon Nov 27 00:40:52 2023
    Op vrijdag 24 november 2023 om 18:33:31 UTC+1 schreef JohnMartens:
    Hi Jafar,

    This works for me:

    SetAnsi(TRUE)
    MemoWrit(cFileNmIni,cContent)

    The memowrit( help page tells more about Ansi

    Does this help you ?

    John


    Op 24-11-2023 om 17:25 schreef Jafar:
    I am trying to change the way ini files created in an application since they are created as utf8 by default which causes problems when writing to these ini files.

    I tried several things like calling SetAnsi with a true flag, but nothing seems to help.

    Does anyone know how I can change the encoding of a file from UTF8 to Ansi?

    I have already tried using SetAnsi(TRUE), but that doesn't help. Even with MemoWrit the encodings is still UTF-8.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)