to be honest, I'd use binfile:// when writing... On Tue, 2 Jun 2020 at 15:17, Andre Garzia <an...@andregarzia.com> wrote:
> A decade ago I wrote a vCard library for LiveCode: > > https://git.sr.ht/~soapdog/vObjectLib > > It uses CRLF and file://, I never had trouble opening the generated vCards > but I haven't tested this in years. > > > > On Mon, 1 Jun 2020 at 01:10, kee nethery via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> >> > On May 31, 2020, at 4:56 PM, Bill Vlahos via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> > >> > If I just use URL file to save vCard files I will get different results >> on Windows vs Macintosh regarding CRLF. VCard files are text files. >> >> UTF-8 files. https://tools.ietf.org/html/rfc6350#section-3.1 >> >> > The vCard standard requires CRLF as the line format regardless of which >> platform the data is being written in. >> >> True https://tools.ietf.org/html/rfc6350#section-3.2 >> >> > LiveCode using the URL file command will write the file differently on >> Windows compared to Mac or Linux. >> >> Sure do wish Livecode would let us declare what a “text” file return >> character or characters was for writing a file. Same as we do with >> itemdelimiters. Something like: >> >> set linedelimiter to U+000D & U+000A >> >> > I can build the variable for the vCard and use CRLF instead of RETURN >> for line endings. >> > >> > If I write the file using URL binfile format will it still be a text >> file that other programs can read? >> >> if you give it a .vcf suffix it should work. >> >> Kee >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > http://www.andregarzia.com > > -- http://www.andregarzia.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode