Unicode
Peter Haworth
pete at lcsql.com
Tue May 5 13:00:02 EDT 2015
I guess I'm not understanding the nuances of this.
I just set up the following test
2 fields and a button
Using the Greek keyboard, I keyed "qwerty" into the first field and
"QWERTY" into the second field.
The button script has in its mouseUp handler:
set the caseSensitive to false
put (toUpper(field "Field1")=field "Field2"),(field "Field1"=field "Field2")
When clicked, this results in "false,false" in the message box.
Is this because the physical keyboard is a US keyboard and would things
work differently if I was using an actual Greek keyvboard?
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 Tue, May 5, 2015 at 12:44 AM, Peter TB Brett <peter.brett at livecode.com>
wrote:
> On 2015-05-04 22:31, Peter Haworth wrote:
>
> Does toUpper/toLower work? Similarly, does the setting of caseSensitive
>> work OK when comparing textDecoded strings?
>>
>
> All string operations support Unicode in LC 7. Obviously, "binary data"
> operations (e.g. "byte x to y of ...") don't!
>
> To answer your specific question: when applied to Unicode strings, the
> toUpper, toLower, and the caseSensitive property apply to *all* Unicode
> glyphs that have uppercase and lowercase forms, not just Latin ones.
>
> Peter
>
> --
> Dr Peter Brett <peter.brett at livecode.com>
> LiveCode Engine Development Team
>
>
>
> _______________________________________________
> 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