Cyrillic charset problem

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

Moderator: Moderators

Cyrillic charset problem

Postby Niks » Wed Jun 17, 2009 9:37 am

Hi,
I have the same problem but on phpbb2. When forum name or topic name is on cyrylic the link is viewtopic?f=1 , but when the forum is on english the link is test-f1.html. Please help.

Thank you and beer. :)
Niks
 
Posts: 3
Joined: Tue Jun 16, 2009 6:45 pm

Advertisement

Re: Cyrillic charset problem

Postby dcz » Wed Jun 17, 2009 10:04 am

It's a lot harder with phpBB2 since it's not handling utf-8. So special characters are htmlentified, and thus harder to filter.

But you could add a static array of the htmentified characters to replace in the format_url method, and use it to replace them the same way.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Cyrillic charset problem

Postby Niks » Wed Jun 17, 2009 10:06 am

dcz wrote:It's a lot harder with phpBB2 since it's not handling utf-8. So special characters are htmlentified, and thus harder to filter.

But you could add a static array of the htmentified characters to replace in the format_url method, and use it to replace them the same way.

++

I don't understand. Could you explain again (with examples) , please.

Thank you and beer.
Niks
 
Posts: 3
Joined: Tue Jun 16, 2009 6:45 pm

Re: Cyrillic charset problem

Postby dcz » Thu Jun 18, 2009 8:36 am

Why not just converting to phpBB3, since the day will come where you will have to do it ?
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Cyrillic charset problem

Postby Niks » Thu Jun 18, 2009 11:35 am

dcz wrote:Why not just converting to phpBB3, since the day will come where you will have to do it ?

Because i have too much mods on my phpbb2. Has got any alternative way to work links where title is on cyrillic?
Niks
 
Posts: 3
Joined: Tue Jun 16, 2009 6:45 pm

Re: Cyrillic charset problem

Postby dcz » Fri Jun 19, 2009 7:42 am

Well, you could try to pass the replacement code from there through htmlentities(), and then apply it the same way as we did there for phpBB3, in the format_url method.
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests