two other problem with UTF-8 persian

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators


Postby dcz » Fri Dec 08, 2006 3:55 pm

Oh I see, this is because the characters used are already passed through htmlspecialchars(), most likely because they where not posted in your forum's char-set.

Anyway, to sort this out the above fix should now read as follow :

Open :

Code: Select all
Includes/funtions_validate.php


Find:

Code: Select all
function validate_username($username)
{
   global $db, $lang, $userdata;



After add :
Code: Select all
   // www.phpBB-SEO.com BEGIN
   $username = ereg_replace('&#[0-9];', " ", $username);
   $username = rawurlencode(trim($username));
   $username = ereg_replace('%[a-zA-Z0-9]{2}', " ", $username);
   // www.phpBB-SEO.com END



;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Re: two other problem with UTF-8 persian

Postby AaronIvan » Wed Jan 06, 2010 1:39 am

I'm coming! Let's see what happens
AaronIvan
 
Posts: 3
Joined: Tue Dec 29, 2009 10:31 am

Previous

Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests


 
cron