special characters (ä,ü,ö,ß) problem

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 05-18-2007, 08:28 PM
apostaganha's Avatar
New Pligger
 
Join Date: May 2007
Posts: 18
Quote:
Originally Posted by 911 View Post
Where do you get stuck? Can you install the Modul but it doesnt work or is der an error message while installing or something else?
It worked somehow! now its fine, but...

But unfortunately the problem persists on the tags
Reply With Quote
  #12 (permalink)  
Old 05-20-2007, 04:29 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Quote:
But unfortunately the problem persists on the tags
True, i didnt noticed that it dont work for tags.

The special Characters are cut off. If I Tag a Story bith "bücher" it is cut to "bcher".

Can somebody please help to fix the Tags.

Best Regards
Reply With Quote
  #13 (permalink)  
Old 05-20-2007, 08:06 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I just found out that without makeFriendly the percent encoding (b%FCcher) works with story.php but not with out.php. This is strange because percent encoded URLs shouldn´t be Pligg´s problem but the receiver´s web server problem.

If I would use makeFriendly the other side has to use a de-makeFriendly to map to the correct resource. :-(
Reply With Quote
  #14 (permalink)  
Old 05-21-2007, 02:22 AM
pliggfreak's Avatar
Casual Pligger
 
Join Date: Apr 2007
Posts: 32
put this <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> fpr german into your pligg.tpl ;-)


thats it

bitte schön mein Freund
Reply With Quote
  #15 (permalink)  
Old 05-21-2007, 08:50 AM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Hmm, this does not fix the Problem with the Tags. The rest works (for me) in UTF-8 and the Modul attached in this Thread fine.

Thanks for the Suggestion, but the root of the Tags Prob must be located somewhere else.
Reply With Quote
  #16 (permalink)  
Old 05-21-2007, 11:50 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
It works fine except that UFT-encoded special characters in lang.conf changed (not a Pligg problem) and in front of messages like PLIGG_Visual_Story_FirstView and PLIGG_Visual_Story_LastViewed_A the characters  appear.

Quote:
Originally Posted by 911 View Post
Hmm, this does not fix the Problem with the Tags. The rest works (for me) in UTF-8 and the Modul attached in this Thread fine.

Thanks for the Suggestion, but the root of the Tags Prob must be located somewhere else.
I´n not an expert in PHP after all but after reading (http://www.phpwact.org/php/i18n/charsets) and (http://phputf8.sourceforge.net/) I believe it´s the function tags_normalize_string($string) of tags.tpl.
Reply With Quote
  #17 (permalink)  
Old 05-21-2007, 01:55 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
By the way: capital letters aren´t recognized as tag characters, too
Reply With Quote
  #18 (permalink)  
Old 05-21-2007, 02:21 PM
Casual Pligger
Pligg Version: 9.5
Pligg Template: yget modified
 
Join Date: Apr 2007
Posts: 43
This mod doesn't work with pligg 9.1?
dr
Reply With Quote
  #19 (permalink)  
Old 05-21-2007, 02:47 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Quote:
Originally Posted by tbones View Post
It works fine except that UFT-encoded special characters in lang.conf changed (not a Pligg problem) and in front of messages like PLIGG_Visual_Story_FirstView and PLIGG_Visual_Story_LastViewed_A the characters  appear.
I noticed that by editing the lang.conf in Backend but I get around this Prob by using the ASCII Code for the special Chars in the language Strings. (like &ouml

I had the same problem with the mysterious  Chars. Ash noticed me the string appears in the story_center.tpl on top. Check yourdomain.com/templates/yget/story_center.tpl
On my local pc the string was not in the template file, just on the webspace the string appears. Uploading the file again did not fix this. After all my I ask my webhoster to fix this.
See: [SOLVED]  string appears in Link summary View



Quote:
Originally Posted by tbones View Post
I´n not an expert in PHP after all but after reading (http://www.phpwact.org/php/i18n/charsets) and (http://phputf8.sourceforge.net/) I believe it´s the function tags_normalize_string($string) of tags.tpl.
So any Ideas how to fix this?

Best Regards

Last edited by 911; 05-21-2007 at 02:59 PM.
Reply With Quote
  #20 (permalink)  
Old 05-21-2007, 03:38 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
My php skills are near to Zero, but i have looked in the tags.php, did some trial and error and googled a bit.

So I replace the
PHP Code:
function tags_normalize_string($string) {
    
$string preg_replace('/[\.\,] *$/'""$string);
    return 
utf8_strtolower($string);

with
PHP Code:
ffunction tags_normalize_string($string) {
    
$string preg_replace( array("/Ö/","/Ü/","/Ä/","/ö/","/ü/","/ä/","/ß/"),array("oe","ue","ae","oe","ue","ae","ss"), $string);
    return 
utf8_strtolower($string);

This is half the way. Now Special Chars in Tags are written to double letter combinations (bücher->buecher). The url is like domain.com/tag/buecher, so this is fine.

[EDIT]I noticed this glue the Tags seperatet by "," into one Tag. like I said, im not in php. Any Tipps on this?
[EDIT 2]Tested again and it looks like it is working fine

So how to display the url with two letter combination but the Tag Link text as regular letter (bücher) ?

Last edited by 911; 05-25-2007 at 01:20 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with translation to czech language due to special characters. stormanx Questions and Comments 7 08-21-2010 09:13 AM
Problem in title, url_title and tags with special characters [svn rev.162] dotx Questions and Comments 4 11-04-2008 05:47 AM
Special characters problem RSS and IE 7 markoi Questions and Comments 1 08-09-2007 02:52 PM
Special Characters "Ñ" "´" - Is a very comented thread mathcv Questions and Comments 7 07-13-2007 09: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