creating a Unicode (UTF-8) file using open/write/close file
Dar Scott
dsc at swcp.com
Wed Sep 24 19:30:02 EDT 2003
On Wednesday, September 24, 2003, at 07:56 PM, Kenji Kojima wrote:
> put number of lines of fld 1 into tNum
> repeat with i=1 to tNum
> put uniDecode(line i of fld 1, "UTF8") & return after tFld
> end repeat
> put tFld into URL "file:testUTF8.txt"
Does this work?
put uniDecode(the unicodeText of fld 1, "UTF8") into URL
"binfile:testUTF8.txt"
In some tests cutting and pasting random web text, I was not able to
see a difference. Maybe I didn't hit upon the end-of-line problems.
(Note that I changed file: to binfile:.)
Dar Scott
More information about the use-livecode
mailing list