That sequence is not really invalid UTF-8. NUL-SPACE is valid in a strict sense, just unlikely. However, it does look very much like UTF-16BE.
You need to convert this to UTF-8 using uniDecode(). The property unicodeFormattedText will give you UTF-16 in native ordering. (And unicodeFormattedText will insert extra line-ends. If you don't want that, use unicodeText.) Dar On Jun 10, 2013, at 12:49 PM, Dr. Hawkins wrote: > I'm still wrapping my head around this. If I have non-unicode, should I be > able to write, > > put the unicodeFormattedText of fld "myField" into myData > > I'm doing this before working with the database, but I still get > > ERROR: invalid byte sequence for encoding "UTF8": 0xd0 0x20 > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
