Page 1 of 1

Error when Sign Up in Portugues (CHARSET)

Posted: Sun Oct 14, 2018 12:41 am
by diasmuchon
Hello Everyone,

I recently created a website, thus created the SIGN UP page (www.gobspbaixada.com.br/sistema_de_login.php)

However, every time a new user tries to fill it up with his/her name in Portuguese, which uses punctuation (eg.: José, Tânia...) it returns with an error message. I've tried changing the HTML PROPERTIES on the SIGN UP FORM by adding charset="ISO-8859-1" but still didn't work. Don't know what to do.

Here follows the print screen.

Sign Up Form
http://gobspbaixada.com.br/arquivos/Prints/wysiwyg2.png

HTML CODE
http://gobspbaixada.com.br/arquivos/Prints/wysiwyg1.png

Re: Error when Sign Up in Portugues (CHARSET)

Posted: Sun Oct 14, 2018 7:37 am
by Pablo
By default, the sign script only allows ASCII characters for security reasons.
If you need more advanced functionality then you will need to modify the script yourself.

Note that 'accept characters' has nothing to do with this. You will need to modify the PHP code.

Code: Select all

if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newusername))
{
   $error_message = 'Username is not valid, please check and try again!';
}
Warning: modifying the code/filter may affect the security of the form!