+ Start a Discussion
Harsh P.Harsh P. 

How to write validation rule for NON-ASCII Characters

Hi Team,

I have requirement to to revent/restrict the user from Non Ascii Characters in one of field. User should not enter the Non Ascii Character in the field.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Harsh,

try with below code.
NOT(REGEX( fieldname__C, "^[a-zA-Z0-9]*$"))

If this helps, please mark it as best answer.

Thanks!!
Harsh P.Harsh P.
Thanks for response , But we want to allow special char. Only non- Ascii char should not be there.