We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to Add Scandinavian letter?[Answered] | Forum

Topic location: Forum home » Support » General Questions
Christer
Christer Oct 31 '14
I just see users cant add e.g email that contain letters öäå and some others similar. This are very common letters in name etc so how can I add so this would work?
The Forum post is edited by ross Nov 3 '14
ross Team
ross Nov 3 '14
This is a custom code modification. 

You need to add new regular expressions for these letters to the e-mail pattern :


const EMAIL_PATTERN = '/^([\w\-\.\+\%]*[\w])@((?:[A-Za-z0-9\-]+\.)+[A-Za-z]{2,})$/';

in the ow_utilities/validator.php file. 

Christer
Christer Nov 3 '14
Thanks Ross
ross Team
ross Nov 3 '14
No problem
ross Team
ross Nov 10 '14
Christer, I would not recommend you to add Scandinavian letters to the regexp, as this can affect your mass mailing as the phpmailer function wouldn't be able to parse it correctly. It is a common practice over the internet to use only latin alphabet, both in username, e-mail and other info, as this info is used all over the software, such as in url etc. 
Christer
Christer Nov 10 '14
Hi Ross
yes I looked around and it is what all using so nothing I want to start mess with. Thanks Ross