How do I unaccent a text from an input text

Get help using Construct 2

Post » Wed Apr 29, 2015 8:26 am

I need unaccent a text that I get from an input text to compare with another with no accents, it's posible?
B
6
Posts: 11
Reputation: 270

Post » Wed Apr 29, 2015 9:42 am

you need "translate" accented to unaccented characters...replace(Input.Text,"accented","unaccent")
something like:
replace(Input.Text,"Ä,"A")
replace(Input.Text,"Õ ,"O")
replace(Input.Text,"Æ" ,"AE").....etc
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Apr 29, 2015 10:07 am

works fine, thanks
B
6
Posts: 11
Reputation: 270

Post » Wed Apr 29, 2015 4:56 pm

@alguillenar ..and something like this can work

capx: http://s000.tinyupload.com/index.php?fi ... 4328374295

just fill first array with accented characters...
and second with replacements...at the same array index..
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827


Return to How do I....?

Who is online

Users browsing this forum: Syazanie Amirin and 6 guests