Closed bjorn closed 3 months ago
Issue can't be resolved by downgrading to PHP 5.4. That seems to have no effect.
Maybe you could change your username to bjorn using mysql itself. I can help write a query for the mysql prompt if necessary. Some databases use username as salt, so if password fails after that, maybe reset password. If other things stop working, more queries could fix that.
@Poikilos I was hoping this could be solved another way, but given I'm rather clueless about encodings when it comes to MySQL, PHP or website setup, I have taken up your suggestion. Indeed, changing to "Bjorn" and going through password reset (and after fixing errors in the emailer.php
), I am able to log in again! :-)
While I've closed this since the main issue is worked around, the issue remains that special characters like "ø" are rendered incorrectly where they have been used in forum messages are possibly other places.
I'm not sure if it's a problem with the database or the website itself. The "ø" was rendering fine when I inspected the database with phpMyAdmin, which suggests the problem could be with the website.
There are two places the encoding could be set.
Right, in fact the HTML is reporting:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
However, there's a HTTP header being sent as follows:
content-type: text/html; charset=utf-8
And it appears the header is getting precedence. Since the site has generally not been using UTF-8, it might be easiest for now to fix the HTTP header to match the content-type defined in the HTML.
Alright, ebcfd360b22f15863d98970b5335c4bcd68eeb92 appears to resolve the issues.
My name is showing up as "Bj�rn" and I am unable to log in.
Probably happening since the server was upgraded to Apache 2.4 and PHP 5.5. I could try if downgrading to PHP 5.4 does anything.