Audiosurf Air > Discussion
Can non-ASCII Characters Be Recognized On Usernames?
blue_h3x:
--- Quote from: GeoLuz on March 29, 2012, 08:02:17 am ---
--- Quote from: metaLsurfeR on March 26, 2012, 09:48:38 am ---If I remember correctly, AS was released both in english and russian. And if a game comes with a russian translation I'd expect it to be able to deal correctly with Cyrillic letters.
--- End quote ---
AS has been able to deal correctly with Cyrillic letters for names of artists and song titles for the scoreboards. However, the game has not been able to deal correctly with Cyrillic letters for usernames. If you click on usernames with Cyrillic letters to access their pages you will find that their links or broken or unworkable.
--- End quote ---
This is because usernames with none-URL-safe characters create broken URLs.
----------------------
So I did a test, generated a URL safe string from a username who's page could not be accessed. Turning the characters into their URL-safe form still resulted in no profile.
Next having disabled redirects and capturing header data it can be seen that the site returns a 302 status code even with the URL safe form. This isn't the browser or client but the server redirecting the page.
At a guess, the server does a query to check if that user exists and if not, redirect. If I'm correct here, although URLs are served in their safe form, the server does not convert the URL encoded username extracted from the GET data into something that can be compared to that stored in the database. Reading further into how PHP handles the superglobal GET, it would seem it is already decoded, which means more debugging is needed.
Someone with source access should dump the raw SQL query and debug from there.
Ofc, using method #3 would remove the need for this and allow any character to be used.
ViRUS:
Plus, everybody loves hashes... Numbers are fun!
S.:
Could just assign everybody a number
000001
000002
000003
...
010383
That also allows you to see which nth user you are :D
blue_h3x:
Hashes would be easier to generate, you don't need to look up what the last assigned number was.
S.:
But numbers would be more human recognizable?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version