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  
 
   
problem with polish characters

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



Joined: 01 Aug 2007
Posts: 1

problem with polish charactersPosted: Wed Aug 01, 2007 9:13 pm    Post subject: problem with polish characters

Hi

I have a problem with polish characters in mod rewrite, the same problem could be in other languages

When i have any polish name like tłustosz i receive /t-sup3-ustosz-f6.html. I need mod or script which will change polish characters to universal view without polish.

Best Regards
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

problem with polish charactersPosted: Wed Aug 01, 2007 9:51 pm    Post subject: Re: problem with polish characters

Could you set up a list of characters needing a particular replace, not being performed yet ?

I'm sure it's no big deal to handle.

_________________
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
janmyszkier



Joined: 12 Oct 2007
Posts: 43
Location: Wroclaw, Poland.

problem with polish charactersPosted: Sat Oct 13, 2007 3:34 pm    Post subject: Re: problem with polish characters

I'll continue the topic and sorry for bumping it:

Ą -> A
ą -> a
Ć -> C
ć -> c
ę -> e
Ę -> E
Ł -> L
ł -> l
Ń -> N
ń -> n
ó -> o
Ó ->O
Ż -> Z
ż -> z
Ź -> Z
ź -> z

ok done. Smile informed matthew_l already
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problem with polish charactersPosted: Sun Oct 21, 2007 12:09 pm    Post subject: Re: problem with polish characters

Let's first see where to handle this Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
pozmu



Joined: 06 Nov 2007
Posts: 2

problem with polish charactersPosted: Tue Nov 06, 2007 5:50 pm    Post subject: Re: problem with polish characters

I used your code from phpbb3 topic to make
version for phpBB2 (for utf-8, remember to change encoding in lang_main.php)

FIND:
Code:
$url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);


ADD AFTER
Code:

$plsearch = array(
      "\xC4\x85","\xC4\x84", // a,A
        "\xC4\x87","\xC4\x86", // c,C
        "\xC4\x98","\xC4\x99", // e,E
      "\xC5\x82","\xC5\x81", //l, L
      "\xC5\x9B","\xC5\x9A", //s ,S
      "\xC5\xBC","\xC5\xBB", // z,Z
      "\xC5\xBA","\xC5\xB9", //z,Z
      "\xc5\x84","\xc5\x83"  //n,N      
      );
    $plreplace = array('a', 'a', 'c', 'c', 'e', 'e', 'l', 'l','s','s','z','z','z','z','n','n');
    $url = str_replace($plsearch,$plreplace,$url);

Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problem with polish charactersPosted: Thu Nov 08, 2007 4:10 pm    Post subject: Re: problem with polish characters

Thanks for sharing Wink

Maybe the best would be to find a way to only declare the replacement array (like it is done for phpBB3 for example) once per page load, since the format_url() function gets called up to many time each page load, it can make a small difference.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
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: