how to uniencode text for VCard v. 3.0?
Dave Cragg
dave.cragg at lacscentre.co.uk
Wed Jun 11 10:36:17 EDT 2008
On 11 Jun 2008, at 15:05, Devin Asay wrote:
>>>
>>> I thought that:
>>> put uniencode(fld "vcard","UTF8" into url("binfile:...)
>>> would do the trick, but nada.
>>> Mac "Addressbook" does not want to import them and "TextEdit" does
>>> not show the umlauts,
>>> although I open the files manually and select "Textencoding:
>>> Unicode UTF8" in the open dialog.
>>>
>>
>> Assuming the text in the field is "plain Rev text", and that you
>> need to export UTF-8. I think it's a two-step process.
>>
>> put uniEncode(fld "vcard") into tVar ## create 2-byte unicode
>> put uniDecode(tVar, "UTF8") into tUTF8Var ## decode to UTF8
>> put tUTF8Var iinto url ("binfile:" & etc.)
>
> Actually, you should be able to do it in one statement (untested):
>
> put uniDecode(the unicodeText of fld "vcard","UTF8") into URL
> ("binfile:...")
>
> After all, it's all about the smallest number of lines of code,
> right? ;-)
Yeah. I read that somewhere. :-)
Dave
More information about the use-livecode
mailing list