On 22/01/14 20:41, Graham Samuel wrote:
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?
What the script in the button does is it grabs the text in the field
and, treating it as normal text pops it into another field
which is tucked away off-screen.
Now any text chars that have values higher than those in the ASCII set
get mucked about; so, if the text in the input field is unicode,
what ends up in the hidden field is not the same; then I do a comparison.
Probably the best thing is just take a look at the script in the button.
Richmond.
P.S. Mixture of Tomato and Apple juice followed by strong, black coffee.
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
_______________________________________________
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