我有一个用 MacRoman 编码的文本列表,由换行符打破。不知何故,第二个列表无法保存在 MacRoman 中,所以我不得不使用 Unicode UTF-16 来获取德语“ö”、“ä”等。虽然 ListA 像预期的那样被填充,但 listB 不再被破坏,我最终得到一个字符串,我无法再破坏/不知道如何破坏。有人可以帮我吗?
set ListA to (read file myFile1 using delimiter linefeed) as list
display dialog "" & item 1 of ListA
--> "Name A"
set ListB to (read file myFile2 using delimiter linefeed as Unicode text) as list
display dialog "" & item 1 of ListB
--> "Name A
Name B
Name C
Name D"