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

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-21-2007, 03:23 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by 911 View Post
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.
See: [SOLVED]  string appears in Link summary View
Where should the characters be? First line? I´ve downloaded the server file and viewed it with Wordpad and Firefox without seeing anything. This problem arose first time after changing the charset so I think it´s code related (v9.5). Nevertheless thank you for your tip!

Quote:
Originally Posted by 911 View Post

So any Ideas how to fix this?
Me and coding is like riding a unicycle! A hazard for the environment :-)
Reply With Quote
  #22 (permalink)  
Old 05-21-2007, 05:53 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
Quote:
Originally Posted by tbones View Post
Where should the characters be? First line? I´ve downloaded the server file and viewed it with Wordpad and Firefox without seeing anything. This problem arose first time after changing the charset so I think it´s code related (v9.5). Nevertheless thank you for your tip
This was a bit strange for me. When I opened the file in my Firefox Browser (2.0):
mydomain.com/templates/yget/story_center.tpl (so try it online, not downloading it, just type in your Live Site Adress)
I could see the chars in the file. If I make "save site" in the browser or donload it to local hdd by ftp and open it with an Editor on my pc, I didnt see the strings also.
I have two test installs online, one wich is fixed and one wich has the prob at all, so I checkt the not fixed site again. Now it becomse more strange for me, if I open the Template file on Server with Internet Explorer I cannot see the Chars too. In Firefox I can still see it in the template file. This is really strange, I dont understand this.

But try to open the story_center.tpl with FF online on your webspace.

Quote:
This problem arose first time after changing the charset so I think it´s code related (v9.5).
So you mean this is since you changed from
Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
to
Code:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
?

I use UTF-8 from beginng and didnt change this.

Last edited by 911; 05-21-2007 at 06:02 PM.
Reply With Quote
  #23 (permalink)  
Old 05-22-2007, 12:42 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I can´t see the files online with my provider, I have to download them via sftp.

Yes, I switched as mentioned in the title ;-)
Reply With Quote
  #24 (permalink)  
Old 05-23-2007, 04:29 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by pliggfreak View Post
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
Dankeschön!

There is still a problem with the live view after this change. What is the file name for this view to change it in the same way?
Reply With Quote
  #25 (permalink)  
Old 05-23-2007, 06:49 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 51
I eventually solved all my charset problems (urls with special characters) thanks to the "makefriendly" module. Check in the download section for it :-)
Reply With Quote
  #26 (permalink)  
Old 05-24-2007, 06:41 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Could anyone with PHP knowledge help us with the code of tags.php and the capital letter problem?
Reply With Quote
  #27 (permalink)  
Old 05-25-2007, 03:31 AM
apostaganha's Avatar
New Pligger
 
Join Date: May 2007
Posts: 18
Quote:
Originally Posted by elquiosco View Post
I eventually solved all my charset problems (urls with special characters) thanks to the "makefriendly" module. Check in the download section for it :-)
That doesnt solve the tag problem.
Reply With Quote
  #28 (permalink)  
Old 05-25-2007, 10:24 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by tbones View Post
Could anyone with PHP knowledge help us with the code of tags.php and the capital letter problem?
Surprisingly, the script worked with my ISO-8859-1 recoded installation (except capital letters)!

I could also find a solution for the live view: Encoding of live view
Reply With Quote
  #29 (permalink)  
Old 05-25-2007, 12:23 PM
911 911 is offline
Casual Pligger
 
Join Date: May 2007
Posts: 33
True, I test it again and it is now working for me too!

So tags and the url for tags are written into 2 letter combinations (ä->ae) with modification the domain.com/libs/tags.php like it is posted here:
http://forums.pligg.com/showpost.php...6&postcount=20

It would be nice if somebody can clean this up so that Tags are displayed with special letters (like all the other text on the Page) and only the Url is written to the 2 Letter Combinations.
Reply With Quote
  #30 (permalink)  
Old 05-27-2007, 04:48 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by tbones View Post
I could also find a solution for the live view: Encoding of live view
I´d like to encourage all users with these problems:
I´ve installed my production pligg today with live2.php set to ISO-8859-1 and it didn´t work. I switched back to UTF-8 and it still didn´t work. Full of anger I went back to ISO-8859-1 and it finally worked!

P.S.: If your whole system is set to ISO-8859-1 you shouldn´t use the lang.conf-Editor intensively with special characters. The outcome neither fit to UTF nor to ISO!
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 6 05-04-2009 10:04 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 problem RSS and IE 7 markoi Questions and Comments 1 08-09-2007 01:52 PM
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