phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
chinese language problem installing phpbb2

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
gulflee



Joined: 13 Aug 2007
Posts: 3

chinese language problem installing phpbb2Posted: Sun Sep 09, 2007 11:35 am    Post subject: chinese language problem installing phpbb2

hi there,

i would like to install a site with traditional chinese. i found that the url cannot display any language correctly. Obviosly my forum title and topic and post would be in chinese language too. the url display become -www.myURL.com/aeerlig-casdedil-a-cfent-e-f16.html <-- that looks as ugly as the php?=xxxxxxx any idea how to make it more nice?

thank first..
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

chinese language problem installing phpbb2Posted: Sun Sep 09, 2007 12:11 pm    Post subject: Re: chinese language problem installing phpbb2

This type of thing can occur when the charset you are using is not supported by htmlentities()

It could as well be because of the format_url() method in phpbb_seo_class.php, try moving :
Code:
      $url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);


After :
Code:
      $url = preg_replace( "`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i","\\1", $url );


You could as well try to replace :

Code:
      $url = preg_replace( "`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i","\\1", $url );


with :

Code:
      $url = preg_replace( "`&([a-z]+)(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i","\\1", $url );


just in case.

You could install and use the simple mod rewrite instead, it would not cause any problem of this kind. Injecting titles in URL only works with Latin characters anyway, so if you are never using any in your titles, it's better.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: