The online racing simulator
LFSWorld character encoding problem.
I have recently noticed that some driver's names look wrong. All of them have one in common, special characters in their names.
This is the most annoying because you cannot just click their names and see their profile.

Let's take this race: https://www.lfsworld.net/?win= ... son93&raceId=21243896 and racer Lönni. Currently his nick looks like L�nni.
If I click on his name and try watching his profile I see L%uFFFDnni was not found - URL https://www.lfsworld.net/?win=stats&racer=L%uFFFDnni
If I put his correct nick profile shows fine. https://www.lfsworld.net/?win=stats&racer=Lönni

Used Firefox (61.0.1) and Chrome (67.0.3396.99) and it's the same on both browsers.
Attached images
wrong.PNG
#2 - Racon
I have the same issue with those characters borking the ajax on PiranMOTO.co.uk, I can't get them through the JSON encoding. I'm currently just stripping them out whilst I wait for time/ideas to fix it, so that at least those names don't take out the whole of the laptimes...

*edit*

Just came across this while looking for something else and remembered this thread...

I started with just the second line of code, but it makes invalid JSON for some usernames. I thought the ignore parameter was supposed to do exactly what the first line does, but the first line fixes it so Shrug

$name = preg_replace('~[^(\x20-\x7F)]*~', '', $name);
$name = iconv('UTF-8', 'UTF-8//IGNORE', $name);

Hello,
I'm sorry for bumping this thread but some time has passed and the issue seems still existing.
Hope to bring some attention.
http header says UTF-8 but source of this world says;

Quote :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

this is confusing friends

also maybe database is in wrong format (not utf-8) and/or not talking in the right mode.

this is a good tutorial about charsets; https://www.toptal.com/php/a-utf-8-primer-for-php-and-mysql
Hi,
a bit of time has passed, and there has been some improvements - but not enough yet.
Using first link I can see Lönni's name correctly, and I can see his stats, hotlaps, etc from there - that was fixed.
However if I go to his profile and I click "Last race information" page "Lönni was not found." appears.

Also, on WR holders chart at the bottom there is a person whose nick is still displayed wrong - siirtomiss� (his name is displayed correctly on LFS Team Search, part of team Zoom).

FGED GREDG RDFGDR GSFDG