Author Topic: Can non-ASCII Characters Be Recognized On Usernames?  (Read 3235 times)

GeoLuz

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
Can non-ASCII Characters Be Recognized On Usernames?
« on: March 24, 2012, 08:45:22 am »
There have been many unworkable URLs on AS that won't allow you to access a player's page due to non-ASCII characters such as Cyrillic characters. There also have been characters used to create fake accounts. Can the problem of unworkable URLs be fixed for Audiosurf Air?
http://www.youtube.com/user/GeoLuzSurfer
ERtrysDynat told me to do it.

blue_h3x

  • Hero Member
  • *****
  • Posts: 5010
    • View Profile
    • AS Tournament
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #1 on: March 24, 2012, 12:28:45 pm »
Possible solutions:

1) All non a-z A-Z 0-9 characters removed (can be done with regex). This includes spaces (the PHP command trim() will remove spaces at the start/end of names(strings))

2) All non  a-z A-Z 0-9 characters converted to their URL safe form

3) A hash derived from the username used to view the profile.

Number 3 would be the easiest to implement that would allow anything to be entered, however creates none human recognisable URLs.
Number 1 would be the easiest that would leave the URLs as human readable.
Australia is kinda awesome, but it's no Yorkshire.

Lebon14

  • Full Member
  • ***
  • Posts: 148
  • Love! Countdown!
    • View Profile
    • Email
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #2 on: March 24, 2012, 08:22:55 pm »
Personnally, your #2 is also a very good solution.  For exemple, a space's safe code is "%20".  Another exemple, "愛" (Ai; Love in Japanese) is "%E6%84%9B".  That can be a lot of work if you are going to make a databse out of this but, thanks to this page, I was able to offer "Ai"'s code :
http://www.w3schools.com/tags/ref_urlencode.asp

:)
Biggest cluster in points : 111362 points
Favorite Character : Pointman Pro
Twitter : @Lebon14

blue_h3x

  • Hero Member
  • *****
  • Posts: 5010
    • View Profile
    • AS Tournament
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #3 on: March 25, 2012, 06:23:06 am »
#2 is easier than you'd expect ;) http://php.net/manual/en/function.urlencode.php

Although it does create a bit of a mess for fancy characters.
Australia is kinda awesome, but it's no Yorkshire.

S.

  • Hero Member
  • *****
  • Posts: 1754
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #4 on: March 25, 2012, 08:05:46 am »
Although it does create a bit of a mess for fancy characters.
At least it allows us to 'customize' our nicknames. Though it's debatable to what extend you would want that. Personally I get pretty annoyed by people who use odd things in their Steam display name.

I'd vote for option 2. This will make some urls still human recognizable, while option 3 messes up all urls.

We'll see what Dylan does.
I am enough idiot to block also this topic, and if aomtt has also enough idiot to continue toss old statements have been said and new statements no basis then block those yes.

GeoLuz

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #5 on: March 25, 2012, 10:22:13 am »
Although it does create a bit of a mess for fancy characters.
At least it allows us to 'customize' our nicknames. Though it's debatable to what extend you would want that. Personally I get pretty annoyed by people who use odd things in their Steam display name.

I'd vote for option 2. This will make some urls still human recognizable, while option 3 messes up all urls.

We'll see what Dylan does.

I would also vote for option 2 for the same reason stated by S. I wanted to create this thread to begin a worthy discussion in hopes of preventing this issue from carrying over into the upcoming game.
http://www.youtube.com/user/GeoLuzSurfer
ERtrysDynat told me to do it.

Passerby

  • Hero Member
  • *****
  • Posts: 1571
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #6 on: March 25, 2012, 11:03:24 am »
everyone going to hate me for this, but why not just use a practical username?

NovaTerran

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #7 on: March 25, 2012, 12:17:52 pm »
everyone going to hate me for this, but why not just use a practical username?
came here to say this

S.

  • Hero Member
  • *****
  • Posts: 1754
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #8 on: March 25, 2012, 12:46:42 pm »
everyone going to hate me for this, but why not just use a practical username?
Some people feel rebellish and don't want to
I am enough idiot to block also this topic, and if aomtt has also enough idiot to continue toss old statements have been said and new statements no basis then block those yes.

Passerby

  • Hero Member
  • *****
  • Posts: 1571
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #9 on: March 25, 2012, 01:39:02 pm »
ya guess this is the interwebs where people need to needlessly complicate simple things.

blue_h3x

  • Hero Member
  • *****
  • Posts: 5010
    • View Profile
    • AS Tournament
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #10 on: March 25, 2012, 01:41:26 pm »
ya guess this is the interwebs where people need to needlessly complicate simple things.

Hence option 1.
Australia is kinda awesome, but it's no Yorkshire.

S.

  • Hero Member
  • *****
  • Posts: 1754
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #11 on: March 25, 2012, 04:03:22 pm »
ya guess this is the interwebs where people need to needlessly complicate simple things.
I share your opinion, however, I can understand someone from Russia/Greece wants his name to be actually Russian/Greek without having to Latinize it.
I am enough idiot to block also this topic, and if aomtt has also enough idiot to continue toss old statements have been said and new statements no basis then block those yes.

metaLsurfeR

  • Full Member
  • ***
  • Posts: 164
    • View Profile
    • Email
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #12 on: March 26, 2012, 09:48:38 am »
Quote
everyone going to hate me for this, but why not just use a practical username?

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.






blue_h3x

  • Hero Member
  • *****
  • Posts: 5010
    • View Profile
    • AS Tournament
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #13 on: March 26, 2012, 12:13:24 pm »
Quote
everyone going to hate me for this, but why not just use a practical username?

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.

The game does, it's the website that doesn't ;)
Australia is kinda awesome, but it's no Yorkshire.

GeoLuz

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
Re: Can non-ASCII Characters Be Recognized On Usernames?
« Reply #14 on: March 29, 2012, 08:02:17 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.

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.
http://www.youtube.com/user/GeoLuzSurfer
ERtrysDynat told me to do it.