-- German umlauts:
Probably your Zenphoto installation still needs to know the server's system character set.
Please try this:
-- Create an empty file called [i]charset_tést[/i]
-- Upload the file into the [i]zp-data[/i] folder
-- Run setup
-- About the plugin(s):
Please remove all plugins you do not use from the [i]/plugins[/i] folder.
Hello fretzl,
charset = utf8
phpMyAdmin:
Webserver:
Apache/2.2.29 (Unix)
Datenbank-Client Version: libmysql - 5.0.96
PHP-Erweiterung: mysqli
Database:
Server: rdbms via TCP/IP
Server-Typ: MySQL
Server Version: 5.5.45-log - Source distribution
Protokoll-Version: 10
Benutzer: xxx
Server Zeichensatz: UTF-8 Unicode (utf8)
charset collation utf8mb4_general_ci
Hello fretzl,
the problem is located to
function printLatestNewsCustom()
.
.
.
echo "" . html_encode(getContentShorten($content, $contentlength,'(...)', null, null)) . "\n";
the text of the message is ok but in the sidebar , the umlauts as HTML codes are displayed.
played a little bit
functions.php:
i have changed line 194
from:
echo "" . html_encode(getContentShorten($content, $contentlength,'(...)', null, null)) . "\n";
to:
echo "" . getContentShorten($content, $contentlength,'(...)', NULL, NULL) . "\n";
and it seems to work. :-)
Hello acrylian,
all my databases/collumns have UTF-8
only the summary says
16 records myISAM latin1_german2_ci.
the problem was that function printLatestNewsCustom()
has given the text from the news as html and so i have printet in the sidebar instead Ü the html code
Ok. But you may have entries that are simply stored wrong for some reason (leftovers from the past for example). If chars like Umlauts are already stored encoded html_encode() will double encode so they don't print correctly. The "proper" fix would be to correct those entries.
the old entries are ok, until the new after updating to 1.4.10 did these problems. No idea why, but after the change in the line 194 of function.php ZPFocus are all special characters in the new News displayed correctly. Perhaps it is but only because that should be displayed in the sidebar with html_encode the news posts.