> 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.


use-livecode mailing list
Please visit this url to subscribe, unsubscribe and manage your subscription 

Reply via email to