Skip to:
Content
Pages
Categories
Search
Top
Bottom

– Problem: Arabic characters?


  • ben-shaf
    Member

    @ben-shaf

    Hi

    1). at registration not accept Arabic characters (Your username was not valid, please try again).

    2). any arabic word in Tags not accept for searching.

    regards

    Ben Shaf

Viewing 2 replies - 1 through 2 (of 2 total)

  • 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.)

    ????

    i got same problem now with version 0.9.0.2

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar