View Full Version : German Umlaute and special charakters
Bass-T.
12-29-2006, 09:21 PM
Hi, Umlaute (ö, ä, ü) and other german special characters (ß...) are not indicated correctly in the image title and the image description in my blog. www.daily-impressions.de Pixelpost 1.5. For example: ä is shown as ö.
I recently had the same problem with the comments and found out that i had to remove in the functions.php the two // in front of $str = UTF8_encode($str); and $str = UTF8_decode($str); Now that works.
I would mostly appreciate if someone have a solution for the image title und image description.
Connie
12-30-2006, 06:22 AM
Oh no, not again!
Please do a search for UTF-8 and read my many postings about all the conditions which generate wrong characters!
Pixelpost is absolutely 100% UTF-8-compliant!
In the wiki you can find information as well, http://wiki.pixelpost.org/index.php?title=After_upgrading_to_1.5%2C_%C3%BC%2 C_%C3%B6%2C_%C3%A4%2C_%C3%A9_have_problem:_UTF-8_for_older_comments for example
but do not start to manipulate the code before making clear that all other conditions are correct...
and give us an URL of an image with wrong title... I cannot find anything wrong
Bass-T.
12-30-2006, 07:44 AM
I had searched bevore i opened that topic. But that hasn't helped. You found nothing because i changed every title to ae, ue... I renamed a title to "Seilbahnstütze" and wrote the same in the image description: http://www.daily-impressions.de/index.php?showimage=462
austriaka
12-30-2006, 09:09 AM
I had a similar problem in my (german) Blog as well.
I guess it is not a failure of Pixelpost but of the Browsers.
Browsers should read the Meta Tag content of charset (<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />) to choose the correct char encoding. But neither Firefox nor IE seem to do this right.
If you change the coding in Browser menu manually to UTF-8, everything is ok.
In Firefox it is "Ansicht | Zeichenkodierung", in InternetExplorer it is "Seite | Kodierung".
In my Blog the UTF-8 is chosen by the browser automatically. I checked the source code of your page and compared it to source code of my Blog. The visible difference in language/charset thing I found is this line in your page:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
In my page this line doesn't exist at all. Try removing it or remove the lang-attributes (<html xmlns="http://www.w3.org/1999/xhtml"> should be enough).
If this doesn't help, perhaps this may help you: If there is a conflict between HTTP charset encoding and META charset encoding, Browser takes the HTTP charset encoding sent by the server automatically. Perhaps your ISP has set ISO-8859-1 as default value?
And the last hint: when you post an image in admin area and your browser is set to ISO-8859-1 when savin the thing, things get wrong when trying to show it in UTF-8 and vice versa.
KArin
Connie
12-30-2006, 11:40 AM
check that your browser is set to automatic detection (this is important when you enter the text in admin)
take off that directive which Austriaka named
have a look at http://www.photografitti.de/index.php?showimage=755 for example , I have hundreds of photos there and if there are Apostrophs and Umlauts in title etc., they are all presented correctly
in Opera, in Firefox etc.
Bass-T.
12-30-2006, 12:02 PM
Thats funny. If i enter the text with the IE, the charakters are presented correctly. But if i do the same with Firefox i have that problem. Do you know where i can set Firefox 2 to automatic detection?
Or is it Ansicht -> Zeichenkodierung -> UTF-8 so i can post images with Firefox and the text is presented correctly?
austriaka
12-30-2006, 01:29 PM
try it!
I can't remember what I did to make it work, but now it works and I do not want to change it ;-)
KArin
Bass-T.
12-30-2006, 01:50 PM
I have tried something yet but cant find out how to adjust Firefox that special characters are showed correctly that i postet in the admin. Removing the lang-attributes in the image_template.html didn't helb too. :(
Connie
12-30-2006, 05:23 PM
I am using Firefox and it works, did you follow all steps which are listed (browser, meta-tag etc.)?
Connie
12-30-2006, 05:27 PM
I am using Firefox and it works
Extras / Einstellungen / Inhalt / Standard Schriftart / Erweitert
have a look at the attached screenshot
Bass-T.
12-30-2006, 06:18 PM
Thanx, but that didnt't help. Think i'm gonna use another browser...
austriaka
12-31-2006, 08:54 AM
funny. I am using Firefox with this and it works (have a look at the screenshot)
http://www.uhlig.at/tmp/umlauts_kl.jpg (http://www.uhlig.at/tmp/umlauts.jpg)
What happens if you change manually "Ansicht | Zeichenkodierung | Unicode (UTF-8) " in Firefox?
KArin
austriaka
12-31-2006, 09:02 AM
ok, more than funny.
I had another look at your page http://www.daily-impressions.de/index.php?showimage=462, Firefox is automatically set to "Ansicht | Zeichenkodierung | Westlich (ISO-8859-1) " and it looks right:
http://www.uhlig.at/tmp/umlauts1.gif
Give page reloading a try
KArin
Connie
12-31-2006, 09:04 AM
and clean the cache...
I think the server sends already page encoding and that has priority to the webpages, header instructions
maybe you ask your hoster to configure apache correctly ?
good luck
Bass-T.
12-31-2006, 11:48 AM
I had another look at your page [url]Firefox is automatically set to "Ansicht | Zeichenkodierung | Westlich (ISO-8859-1) " and it looks right:
Because i changed the titles in the IE yesterday of as good as all pictures and they are now in ISO Code. Switch to UTF8 and it doesnt work anymore. Did Firefox atomaticly switch to ISO? Because Firefox doesn't switch automaticly from ISO to UTF8 in my case.
If i look at that title http://www.photografitti.de/index.php?showimage=755 with ISO encoding in the browser, its "Korngröße". That title can only be showed correctly with UTF8 encoding in the browser. But the IE and Firefox switch automaticelly to UTF8 when open that link.
Thats not the case on my blog. The browser remains on the encoding that was in the settings bevore. Pixelpost should say the browsers: This page is in UTF8, use UTF8 encoding. Or am i not right here? If i post titles with firefox, the titles are in UTF8 Code. I try to view them with Firefox ore IE, the Encoding of both browsers is ISO, i have to switch manually to view them correctly.
To summarize: If i post titles with Firefox or Opera i have to change every time i visit a page of my blog the encoding to UTF8 that i can see the titles correctly. If i post titles with the IE the titles are posted in ISO and that seems to be the preset of the three browsers that no encoding change is necessary to view the titles correctly. If i visit photografitti.dethe browser switch atomatically to UTF8. Is that a problem of pixelpost or of my Webhoster?
To have i look:
I postet that title with Firefox (UTF8):
http://www.daily-impressions.de/index.php?showimage=189
And that with the IE (ISO):
http://www.daily-impressions.de/index.php?showimage=462
And another question is:
Firefox is automatically set to "Ansicht | Zeichenkodierung | Westlich (ISO-8859-1) n
Why did Firefox that after i renamed the title with the IE? And why does Firefox not automatically set to UTF8. So you have must seen that title yersterday correctly. (On that time the title was postet with Firefox.) That is thus not a problem of my browser.
austriaka
12-31-2006, 01:07 PM
1) ask your provider if header information sent by server is set to ISO-8859-1 automatically and if in that case he could change that
2) UTF-8 is the more "universal" encoding. So if you have mostly international visitors from countries outside german umlauts areas, you should try to use UTF-8 for posting.
3) Use html entities for title and description and everything is fine...
LG
KArin
Bass-T.
12-31-2006, 01:13 PM
3) Use html entities for title and description and everything is fine...
How do i do that?
austriaka
12-31-2006, 01:15 PM
How do i do that?
use ö for "ö"
use Ö for "Ö"
use ü for "ü"
use Ü for "Ü"
use ä for "ä"
use Ä for "Ä"
use ß for "ß"
(BTW this would be the most valid way to write german Umlauts in HTML)
KArin
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.