Unicode

Peter W A Wood peterwawood at gmail.com
Mon Jan 26 00:33:32 EST 2015


Pete

 I think the real coding advantage with Unicode in 7+ comes when processing text.

Personally, I think that it is safer to stick with UTF-8 encoding for external data as it is the only encoding format that you don’t need to worry about processor “endianness”. 

Regards

Peter

> On 26 Jan 2015, at 10:15, Peter Haworth <pete at lcsql.com> wrote:
> 
> Thanks Peter.  If that's the case, I'm not seeing much in the way of a
> coding advantage over pre 7.0.  Sounds like using textEncode/textDecode
> instaed of uniencode/unidecode?
> 
> That does answer another question I had though which is what is needed if
> the database is UTF-16 encoded.  Sounds like nothing needs to be done.  I
> guess I'll have to set up some tests.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> On Sun, Jan 25, 2015 at 5:08 PM, Peter W A Wood <peterwawood at gmail.com>
> wrote:
> 
>> Pete
>> 
>> LiveCode 7+ stores text data encoded according to UTF-16 so, as I
>> understand, you will need to convert the UTF-8 encoded data using the
>> textEncode function.
>> 
>> Regards
>> 
>> Peter
>> 
>> 
>>> On 26 Jan 2015, at 06:45, Peter Haworth <pete at lcsql.com> wrote:
>>> 
>>> Is there a lesson/guide anywhere that shows how to use unicode in LC 7?
>>> 
>>> All I need to do is SELECT data from an UTF8 encoded SQLite
>>> database/display it in fields/datagrid and read input from fields/
>>> INSERT/UPDATE it to the database.
>>> 
>>> I've got things working using unicodeText/uniencode/unidecode in LC 6.6
>> but
>>> wondering how things work in 7.  Or even if it's worthwhile even using
>> LC 7
>>> for something as simple as this.
>>> 
>>> The LC7 release notes document all the new properties/commands but don't
>>> have any examples for straightforward use.  Am I right in thinking that I
>>> don't need to use unicodeText/uniencode/unidecode in LC7 to do the above
>>> tasks?  Just simple put into field/put field into var is all I need?
>>> 
>>> Pete
>>> lcSQL Software <http://www.lcsql.com>
>>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list