Special Characters error in title url

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2008, 02:27 PM
New Pligger
Pligg Version: 9.8
 
Join Date: Aug 2008
Posts: 2
Im trying to fix this error but im not having sucess.

Im posting my articles in portuguese but when i post somenthing like

Quote:
Grêmio TV lança programa voltado para jovens torcedores
the url for this story convert the special characters in:

Quote:
/gr%EAmio-tv-lan%E7a-programa-voltado-para-jovens-torcedores/
I tried to edit function makeUrlFriendly but doesn work for me. I suspect that the special character are coming to function converted in "%EA" and the function dont recognize the special characters.

Im using pligg 9.9.5 and my site is Esportelog / NotÃ*cias publicadas
Reply With Quote
  #2 (permalink)  
Old 09-15-2008, 09:46 AM
New Pligger
 
Join Date: Sep 2008
Posts: 1
somebody know the solution?
Reply With Quote
  #3 (permalink)  
Old 09-16-2008, 07:56 PM
amsy's Avatar
New Pligger
Pligg Template: TheMissingpiec
 
Join Date: Jul 2007
Location: İstanbul
Posts: 20
this and this posts check first


second dont forget the search
Reply With Quote
  #4 (permalink)  
Old 09-19-2008, 03:50 PM
New Pligger
Pligg Version: 9.8
 
Join Date: Aug 2008
Posts: 2
I fix the error this way:

modify the libs/utils.php from:

Quote:
$output = html_entity_decode(htmlentities($output, ENT_COMPAT, 'UTF-8'));
to:

Quote:
$output = html_entity_decode(htmlentities($output, ENT_COMPAT, 'iso-8859-1'));
And add this:

Quote:
$output = strtr($output, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèé êëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaacee eeiiiionoooooouuuuyy");
after this:

Quote:
$output = str_replace("\"", "", $output);
Now I will try to fix the tags. Thanks to all.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
special characters (ä,ü,ö,ß) problem 911 Questions and Comments 78 10-12-2009 07:39 PM
Problem in title, url_title and tags with special characters [svn rev.162] dotx Questions and Comments 4 11-04-2008 04:47 AM
Special Characters GrinGEO Questions and Comments 1 11-12-2007 09:04 AM
Special Characters "Ñ" "´" - Is a very comented thread mathcv Questions and Comments 7 07-13-2007 08:34 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development