Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Why did the Roman Empire collapse? What is the Latin for office automation?


devel / comp.lang.clipper.visual-objects / How do I create a file in Ansi format?

SubjectAuthor
* How do I create a file in Ansi format?Jafar
+* How do I create a file in Ansi format?JohnMartens
|`- How do I create a file in Ansi format?Jafar
`- How do I create a file in Ansi format?Jamal

1
How do I create a file in Ansi format?

<6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10091&group=comp.lang.clipper.visual-objects#10091

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ad4:4208:0:b0:66a:ea5b:45de with SMTP id k8-20020ad44208000000b0066aea5b45demr100882qvp.0.1700843140807;
Fri, 24 Nov 2023 08:25:40 -0800 (PST)
X-Received: by 2002:a63:fb0c:0:b0:5be:24b1:7862 with SMTP id
o12-20020a63fb0c000000b005be24b17862mr478407pgh.4.1700843140581; Fri, 24 Nov
2023 08:25:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.swapon.de!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 24 Nov 2023 08:25:40 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=83.98.229.8; posting-account=nilYsQoAAABgECZK45SIwS7rd94HNudc
NNTP-Posting-Host: 83.98.229.8
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>
Subject: How do I create a file in Ansi format?
From: jaf...@marti-orbak.nl (Jafar)
Injection-Date: Fri, 24 Nov 2023 16:25:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1322
 by: Jafar - Fri, 24 Nov 2023 16:25 UTC

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?

Re: How do I create a file in Ansi format?

<ujqmp8$2dii9$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10092&group=comp.lang.clipper.visual-objects#10092

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mart...@tennishulp.info (JohnMartens)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: How do I create a file in Ansi format?
Date: Fri, 24 Nov 2023 18:33:27 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ujqmp8$2dii9$1@dont-email.me>
References: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Nov 2023 17:33:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2bad3433ebef106b207706b232fc2f82";
logging-data="2542153"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180Ws0WzQ89MxodxJeLI09GyoBRzE2Avbs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fEaWoImaYR03pGhrVPLLQLbWyLk=
In-Reply-To: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>
Content-Language: nl
 by: JohnMartens - Fri, 24 Nov 2023 17:33 UTC

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?

Re: How do I create a file in Ansi format?

<84bf4d8b-d49a-4aa9-9f6c-912edf70e650n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10093&group=comp.lang.clipper.visual-objects#10093

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:622a:1822:b0:41c:b702:a297 with SMTP id t34-20020a05622a182200b0041cb702a297mr304536qtc.2.1701074453269;
Mon, 27 Nov 2023 00:40:53 -0800 (PST)
X-Received: by 2002:a05:690c:2b82:b0:5cb:ed68:a256 with SMTP id
en2-20020a05690c2b8200b005cbed68a256mr365954ywb.4.1701074453111; Mon, 27 Nov
2023 00:40:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 27 Nov 2023 00:40:52 -0800 (PST)
In-Reply-To: <ujqmp8$2dii9$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=83.98.229.8; posting-account=nilYsQoAAABgECZK45SIwS7rd94HNudc
NNTP-Posting-Host: 83.98.229.8
References: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com> <ujqmp8$2dii9$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <84bf4d8b-d49a-4aa9-9f6c-912edf70e650n@googlegroups.com>
Subject: Re: How do I create a file in Ansi format?
From: jaf...@marti-orbak.nl (Jafar)
Injection-Date: Mon, 27 Nov 2023 08:40:53 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: Jafar - Mon, 27 Nov 2023 08:40 UTC

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.

Re: How do I create a file in Ansi format?

<ull0qa$2hq21$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10096&group=comp.lang.clipper.visual-objects#10096

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vodot...@gmail.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: How do I create a file in Ansi format?
Date: Sat, 16 Dec 2023 15:20:29 -0500
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ull0qa$2hq21$1@dont-email.me>
References: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Dec 2023 20:20:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d75e1373f0df154337840842cb020aa7";
logging-data="2680897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xVqOcyZgOTdiQysMqhm4ddDqPSXrWRb0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:gfkm4MQ7pP610Pexs/hIWLfm7Uc=
In-Reply-To: <6f9702cf-9b4d-45c9-b73c-68d83449bdc3n@googlegroups.com>
Content-Language: en-US
 by: Jamal - Sat, 16 Dec 2023 20:20 UTC

Create the file using using FCreate(), then use FWriteText() and
FWrite4() which are dependent upon SetAnsi().

Refer to the VO documentation.

If this helps, let post back.

Jamal

On 11/24/2023 11:25 AM, Jafar wrote:
> 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?

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor