Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: – Problem: Arabic characters?


ben-shaf
Member

@ben-shaf

I changed in formatting-functions.php this code:

$text = preg_replace(‘/[^a-z0-9-]/i’, ”, $text);

$text = preg_replace(‘|-+|’, ‘-‘, $text);

to:

$text = preg_replace(‘|%([a-fA-F0-9][a-fA-F0-9])|’, ”, $text);

$text = preg_replace(‘/&.+?;/’, ”, $text);

AND

$text = preg_replace(‘/[^a-z0-9_-]/i’, ”, $text);

to:

$text = preg_replace(‘|[^a-z0-9 _.-@]|i’, ”, $text);

* Original code from WordPress (formatting.php), maybe true :)

Now, I can registration arab characters, but I can not login ( This username does not exist.)

????

Skip to toolbar