|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Sivvis Smarty n00b
Joined: 09 Oct 2013 Posts: 1
|
Posted: Wed Oct 09, 2013 7:27 am Post subject: Probleme bei html_options mit Umlauten |
|
|
Hallo alle miteinander!
Ich habe folgendes Problem:
Ich hole aus meiner Datenbank Werte in ein Array mit Umaluten, dieses möchte ich dann als DropDown-Liste mit der Smarty-Funktion {html_options} anzeigen, dies klappt auch sehr gut, bis auf die Werte die einen Umlaut enthalten, diese werden einfach komplett ausgeblendet(der gesamte Datensatz nicht nur der Umlaut).
Datenbank sowie Einstellungen und Dateien sind UTF-8 kodiert...
Kann mir jemand helfen?
Gruß
Sivvis |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Oct 09, 2013 5:33 pm Post subject: |
|
|
Bei der Verwendung von "html_options" durchlaufen die Strings htmlspecialchars(). Diese Funktion kann bei einem falschen charset einen leeren String zurückliefern.
Vermutlich ist Smarty::$_CHARSET falsch aufgesetzt.
Vielleicht hilft Dir mb-detect-encoding um den verwendeten Charset zu identifiziren.
Siehe http://php.net/manual/de/function.mb-detect-encoding.php |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|