Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Replace non latin chars on permalink
Old 11-28-2010, 10:36 AM Replace non latin chars on permalink
Experienced Talker

Posts: 32
Name: Kleidi
Trades: 0
Hello,
I'm working on a school project and i need to have a permalink field on the db for seo url.
I have a field on db that is name LajmeEmri that include the name of the article and another field LajmeLink that should be the permalink for seo. What i have now is this variable:
PHP Code:
$LajmeLink preg_replace("#[^a-z0-9\-_]#i""",str_replace(' ''_'$LajmeEmri)); 
But this does not replace non latin chars like ë or ç to latin ones (e and c). Can anoyone help me to make the permalink only with latin chars? I need to replace ë with e and ç with c.

Thank you!
Kleidi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-28-2010, 07:51 PM Re: Replace non latin chars on permalink
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Look at iconv on www.php.net or see http://www.randomsequence.com/articl...ters-with-php/ for a brute force method.
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Replace non latin chars on permalink
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09453 seconds with 12 queries