err... it does work under LC8.. just tried it
MacBook Pro, El Capitan, OSX 10.11.4
on mouseUp
put "öõÓÔÒÕÖúùû" into mytext
put "áàâäãåÄÅÀÃéèêëÊËÈÉíìîïÍÎÏÌóòôöõÓÔÒÕÖúùûüÚÛÙÜÑñçÇ'" into accent
put "aaaaaaAAAAeeeeEEEEiiiiIIIIoooooOOOOOuuuuUUUUNncC_" into noaccent
put 0 into cpt
repeat for each char i in accent
add 1 to cpt
replace i with char cpt of noaccent in myText
end repeat
put mytext
end mouseUp
it returned ...
ooooooouuu
> From: [email protected]
> Subject: Replace accents
> Date: Tue, 10 May 2016 14:59:12 +0200
> To: [email protected]
>
> Hello,
>
> This little scrip don't word with Livecode 7 and 8. I guess this is because
> Livecode work directly in unicode (the script work with Livecode 6).
> But how handle it in my script ?
>
> put "áàâäãåÄÅÀÃéèêëÊËÈÉíìîïÍÎÏÌóòôöõÓÔÒÕÖúùûüÚÛÙÜÑñçÇ'" into accent
> put "aaaaaaAAAAeeeeEEEEiiiiIIIIoooooOOOOOuuuuUUUUNncC_" into noaccent
> put 0 into cpt
> repeat for each char i in accent
> add 1 to cpt
> replace i with char cpt of noaccent in myText
> end repeat
>
> I've tried with uniDecode and uniencode without success
>
> Thanks
> _______________________________________________
> 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