Importing unicode UTF8 text files - followup

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 19 17:23:51 EDT 2015


On 8/19/2015 4:12 PM, Peter TB Brett wrote:
> On 2015-08-19 22:29, J. Landman Gay wrote:
>>
>> Thanks very much. The terminal command returns 0 (and BBEdit can
>> handle the file too) so it seems to be valid. I'll submit a bug
>> report, I can share the file without any issues.
>
> The following seems to work correctly:
>
>      on importLanguage
>          local tFile
>          answer file "Choose the language file"
>          put it into tFile
>          if tFile is empty then exit to top
>          open file tFile for "UTF-8" text read
>          read from file tFile until EOF
>          put it into tData
>
>          -- etc.
>
>      end importLanguage
>
> So... I don't suppose I can persuade you to upgrade to LiveCode
> Business, can I?

I shouldn't need Business for that, should I? My script uses "get url", 
I guess "open file" works differently?

You must have looked at my bug report already, you're using my variable 
names. :)

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list