Sign in to follow this  
Followers 0
lafafmentvotre

Prevent accents

4 posts in this topic

Hi everybody

First sorry for my bad english.

I want to know how can i prevent accents in a inputbox but not for all.

In my first inputbox > Prevent accents

In my second inputbox > Authorize accents

and how to convert accents with no accents when user write in imputbox (like stringreplace($my_inputbox, "é", "e")

I hope i'm clear :)

Thanks for help

Share this post


Link to post
Share on other sites



Hello

doesn't work for my need. the result is : ??abc? hello?

i want to know how replace :

é by e

ù by u

à by a

......

Any solution ?

Thanks

Share this post


Link to post
Share on other sites

Local $aConvert[7][2] = [["[àáâãäå]","a"],["[éèêë]","e"],["[ìíîï]","i"],["ñ","n"],["[òóôõö]","o"],["[ùúûü]","u"],["[ýÿ]","y"]]

$in = "èïabcåñ heýýoü"

For $i = 0 to 6
    $in = StringRegExpReplace($in, $aConvert[$i][0], $aConvert[$i][1])
Next

MsgBox (0, "result", $in)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0