Richmond, thanks for inching my problem towards a solution. I downloaded your 
test. Clever, in fact too clever for me. I don't understand why the test works. 
Would you care to explain?

Incidentally, I found the following instructive when using your handler:

1. I found some genuine Unicode text (it was from the Wikipedia entry dedicated 
to Unicode), pasted it in to your handler and got a correct report that it was 
Unicode.

2. Then I copied some text from an ordinary LC field that I happened to have on 
the screen, and pasted it into your handler after the already identified 
Unicode text: the whole text was identified as Unicode.

3. When I cleared out the handler's entry field and just pasted my field text, 
the test said it wasn't Unicode.

>From which I conclude that if I put just one innocent Unicode character (let's 
>say space) into my field before allowing people to paste into it, whatever 
>gets pasted will be seen by LC as Unicode - mission accomplished! Of course 
>I'm going to test this some more...

Graham


On 22 Jan 2014, at 18:18, Richmond <richmondmathew...@gmail.com> wrote:

> Just belted off a stack that WILL tell you if a textField contains
> Unicode text or not; it's here:
> 
> http://forums.runrev.com/viewtopic.php?f=5&t=18869
> 
> Love, Richmond.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to