On Jun 11, 2008, at 6:25 AM, Dave Cragg wrote:
On 11 Jun 2008, at 09:00, Klaus Major wrote:
Hi all,
as the subject says, I am trying to export addresses to the VCard
format 3.0.
Lots of german adresses with umlauts etc.!
But whatever I try, I cannot figure out how to encode the strings :-/
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? ;-)
Regards,
Devin
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution