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  
 
   
About special characters remplacement
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
Bembis



Joined: 25 May 2008
Posts: 9

About special characters remplacementPosted: Tue May 27, 2008 12:05 pm    Post subject: Re: About special characters remplacement

Somebody Help me Rolling Eyes
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

About special characters remplacementPosted: Tue May 27, 2008 12:21 pm    Post subject: Re: About special characters remplacement

Bembis wrote:

I need ą Ą to a Šš to s ęĘ to e įĮ to i šŠ to s ųŲ to u ūŪ to u ėĖ to e ęĘ to e Rolling Eyes Rolling Eyes


Are these the only replacement you need ?

Because, I have few knowledge about these chars and the language they are used in.

From there I could give you an hand for coding Wink

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



Joined: 25 May 2008
Posts: 9

About special characters remplacementPosted: Tue May 27, 2008 1:10 pm    Post subject: Re: About special characters remplacement

Yes only this Ąą - a čČ-c ęĘ-e ėĖ-e Įį-i Šš-s Ųų-u Ūū-u Žž-z this is Lithuanian language charakters Smile
Back to top
Bembis



Joined: 25 May 2008
Posts: 9

About special characters remplacementPosted: Wed May 28, 2008 3:58 pm    Post subject: Re: About special characters remplacement

so ?
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

About special characters remplacementPosted: Thu May 29, 2008 9:09 pm    Post subject: Re: About special characters remplacement

Bembis wrote:
so ?


well, this is not the message that gave me the most urge to answer ever, but ho well Rolling Eyes

Using http://www.tony-franks.co.uk/UTF-8.htm I'd get :

Code:
      // --> Custom str_Replace arrays, to handle special cases properly
      $this->seo_opt['url_find'] = array(utf8_chr(260),utf8_chr(261),  // ą Ą -a
         utf8_chr(268),utf8_chr(269), // čČ-c
         utf8_chr(280),utf8_chr(281), // ęĘ-e
         utf8_chr(278),utf8_chr(279), // ėĖ-e
         utf8_chr(302),utf8_chr(303), // Įį-i
         utf8_chr(138),utf8_chr(154), utf8_chr(352),utf8_chr(353), // Šš-s
         utf8_chr(370),utf8_chr(371), // Ųų-u
         utf8_chr(362),utf8_chr(363), // Ūū-u
         utf8_chr(142),utf8_chr(158), utf8_chr(381),utf8_chr(382), // Žž-z
      );
      $this->seo_opt['url_replace'] = array('a', 'a', 'c', 'c', 'e', 'e', 'e', 'e','i', 'i', 's', 's', 's', 's', 'u', 'u', 'u', 'u', 'z', 'z', 'z', 'z');


Note that for š and ž, both upper and lower case, there was more than on set of entry in the table, I implemented them all, since I'm not really sure what would make someone use one set or another, this way, it should work in all cases.

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



Joined: 24 Jul 2008
Posts: 31

About special characters remplacementPosted: Sat Jul 26, 2008 5:42 pm    Post subject: Re: About special characters remplacement

Hello SeO & dcz,

I wanna thank you very much for your wonderful work. I just installed your Advanced SEO URL MOD and until now (haven't tested it too much yet) it works very well. Smile

Here is my version chiefly to handle german umlauts:

Code:
      // --> Custom str_Replace arrays, to handle special cases properly
      $this->seo_opt['url_find'] = array(
         utf8_chr(196),utf8_chr(228), // ä
         utf8_chr(214),utf8_chr(246), // ö
         utf8_chr(220),utf8_chr(252), // ü
         utf8_chr(223), // ß
         utf8_chr(39), utf8_chr(180), // '´
      );
      $this->seo_opt['url_replace'] = array('ae', 'ae', 'oe', 'oe', 'ue', 'ue', 'ss', '', '');


I think you really should tell about this thread in your install file or, maybe even better, provide a guide how to handle special chars directly in the installation file.

Thanks again & greetings from Austria!
Wolfgang
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14271

About special characters remplacementPosted: Sun Jul 27, 2008 7:10 am    Post subject: Re: About special characters remplacement

Great Very Happy

Providing some good documentation about mod_rewrite internationalization is close to the top of our todo list, but we need to convert phpBB SEO to phpBB3 first, should occur this summer 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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 4 of 4 Goto page Previous  1, 2, 3, 4

Navigation Similar Topics

Jump to: