tsNet mail message not formatting

Bob Sneidar bobsneidar at iotecdigital.com
Wed Mar 3 16:43:04 EST 2021


OK Now I am interested. I have a little utility that converts a Konica Minolta address book to a Toshiba one. If I run the utility on a Mac, the address book will not import into a Toshiba copier, but if I first OPEN the csv file in WINDOWS, then save and close it, suddenly it WILL import. I tracked this down some time ago to the fact that the line endings were different than the Toshiba was expecting. I thought I fixed it by using LF but I have the same problem as before. From what I am reading, the LC constants will return a different result on LC for Windows as opposed to LC for Mac??

Bob S


On Mar 3, 2021, at 11:51 AM, Brian Milby via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

If you want to be the most accurate (clear for others reading code) you would use the LF constant instead of CR since that is how it actually evaluates.  The only way to generate an actual CR within code is to use CRLF (which gets both) or use numtobyte(13).

If you export as text, then you get what is expected on Win/Linux and get CR on Mac (which is wrong in my opinion).

Sent from my iPhone




More information about the use-livecode mailing list