BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Deutsches Forum XMM 8
 Umlaute defekt trotz UTF-8 im HTML-Export
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SyN0
Starting Member

Germany
42 Posts

Posted - 11 Dec 2016 :  15:01:35  Show Profile  Visit SyN0's Homepage  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
ich habe hier ein merkwürdiges problem. ich habe die templates für den export meiner daten mittels "meine sammlung in html" alle für utf-8 angepasst. dennoch erscheinen alle deutschen umlaute als fragezeichen auf einem karo (wie die deutsche kartenspielfarbe).

ich habe dann mal in den quelltext der erzeugten html-datei geschaut und da steht es auch schon fehlerhaft drin. wie kann ich fixen?
habe jetzt gut 4h schon rumgesucht und habe das problem noch nicht lösen können.
sollte ich vielleicht als geforderten font arial coden? bisher stehen im quellcode nur fonts wie
"font-family: Tahoma, Geneva, sans-serif;"


bzw. steht in der MediaPortal.css
"font-family: Verdana,Arial,Helvetica, sans-serif;"
im grunde sollten die fonts ja auch die umlaute können.


JDommi
Administrator

Germany
4638 Posts

Posted - 11 Dec 2016 :  15:23:33  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try it with: <html lang="de">
Ansonsten prüfe mal die HTML, ob die auch wirklich als UTF-8 abgespeichert worden ist. Z.B. mit notepad++

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

SyN0
Starting Member

Germany
42 Posts

Posted - 11 Dec 2016 :  18:48:38  Show Profile  Visit SyN0's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
also ich hab jetzt alle in dem template-ordner befindlichen dateien geprüft, ob die ein <html> oder ein charset haben und hab dann überall html lang="de" und charset=UTF-8" eingetragen und jede datei mit dem np++ geladen und als UTF-8 abgespeichert. 3 verschiedene browser zeigen den fehler immer noch an. erst wenn ich da die kodierung von utf-8 auf westlich-iso-8859-1 schalte, wird es richtig angezeigt. so langsam weiss ich nicht mehr weiter. du kannst es dir ja mal anschauen auf http://darksyno.de/mme/index.html anschauen. gleich der erste artikel "12 mönkeys" :)

achja, wenn ich die exportierte index.html in np++ lade, bestehen die umlaute aus der zeichenkette xD6
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 11 Dec 2016 :  22:05:02  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Werde ich morgen mal schauen.
Bin in der Beziehung aber auch eher Tüftler als Wissender

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 12 Dec 2016 :  09:35:40  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Schau mal bitte hier: https://www.computerbase.de/forum/showthread.php?t=1316100
quote:
[HTML] AW: Umlaute werden nicht angezeigt, trotz UTF-8
Schau mal hier:
http://stackoverflow.com/questions/7...ing-in-browser
Wenn dein Webserver ein eigenes Default Charset konfiguriert hat und mitsendet, dann nehmen die meisten Browser das mitgesendete und nicht das im HTML deklarierte.
Korrekt wäre also, gar kein Default-Charset einzustellen - das entspricht der markierten Antwort des obigen Posts.
Alternativ, aber NUR wenn die Weboberfläche vom Anbieter das nicht hergibt: auf UTF8 stellen - das kann dann aber andere, nicht UTF8-Inhalte die dein Server ausliefert zerschießen!
Für diese Annahme spricht, dass mein Firefox zwar das UTF8 sieht, aber die Seite trotzdem als windows-1252 darstellt. Kannst du dir auch selbst ansehen, indem du im Firefox einen Rechtsklick in die Seite machst und "Seiteninformationen anzeigen" auswählst.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page

SyN0
Starting Member

Germany
42 Posts

Posted - 26 Dec 2016 :  19:42:08  Show Profile  Visit SyN0's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hm ok. meine htaccsess hat nen utf-8-befehl drin. den schmeiss ich mal raus.

[update: es funktioniert immer noch nicht].
also nochmal zum mitschreiben für mich:

1. htaccess hat jetzt garkeine charset mehr drin
2. alle html-templates weisen charset utf-8 im quelltext auf (muss da zwingend html lang="de" rein?)
3. im notepad++ ist die kodierung auch utf-8 (nicht utf-8 ohne BOM)

laut support meines webhosters sollte nun eigentlich alles so angezeigt werden, wie es in der webseite gesteuert wird
Go to Top of Page

JDommi
Administrator

Germany
4638 Posts

Posted - 26 Dec 2016 :  22:05:54  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dann solltest du eigentlich das lang=de setzen müssen.
Ist, glaube ich, in dem Text auch so angegeben!?

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.13 sec. Powered By: Snitz Forums 2000 Version 3.4.07