Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serendipity_strftime() does not convert date to local charset #828

Open
F3lisCatus opened this issue Mar 16, 2024 · 0 comments
Open

serendipity_strftime() does not convert date to local charset #828

F3lisCatus opened this issue Mar 16, 2024 · 0 comments

Comments

@F3lisCatus
Copy link

My blog is set to using ISO 8859-1 instead of UTF-8 for historical reasons. After updating to 2.5.0 and PHP 8.2 I noticed the month on top of my entries was being displayed as a UTF-8 string ("März" instead of "März"). After some fiddling around with the source code and a short discussion on the forums (https://board.s9y.org/viewtopic.php?t=26376) I ended up adding the following line to /include/functions.inc.php:

# diff functions.inc.php functions.inc.php.orig 
163d162
<     if (LANG_CHARSET != "UTF-8") $out = mb_convert_encoding($out, LANG_CHARSET, 'UTF-8');

..which seems to work fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant