Unicode in variables

Devin Asay devin_asay at byu.edu
Mon Aug 19 15:15:23 EDT 2013


On Aug 19, 2013, at 1:03 PM, J. Landman Gay wrote:

> I need to read and process a tab-delimited text file that is in UTF8 format containing unicode. The final goal is to get it into an array with the first tabbed item as the keys, preserving all unicode. There are some HTML format tags in it as well.
> 
> If I read the file as binfile, carriage returns are all lost.

Jacque,

Where are the files coming from? Maybe they're using ASCII 13 as a line terminator, or ASCII 10 + 13. Can't you replace whatever the native line delimiter is with numToChar(10)? 

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University





More information about the use-livecode mailing list