ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Accents in URLS produce 'Disallowed Key Characters' error

December 06, 2010 6:44am

Subscribe [2]
  • #1 / Dec 06, 2010 6:44am

    MID

    166 posts

    Hi,

    Just launched a site where member profile info is displayed at /username (using Solspace’s User module). No problems with User as far as I can see, but EE is refusing to display pages where the username contains non-alphanumeric characters, eg mysite.org/profile/Frédéric. The ‘Disallowed Key Characters’ message appears.

    Is there any way to a) allow these characters in EE URLs, or b) disallow them in usernames? Or is there some other way out of this?

    As I say, just launched and a thousand or so people - many with accents in their names! -  may want to update their profiles any day now, so hope to find a fix before this becomes a big problem. Thanks!

  • #2 / Dec 06, 2010 4:45pm

    Ingmar

    29245 posts

    ... EE is refusing to display pages where the username contains non-alphanumeric characters, eg mysite.org/profile/Frédéric. The ‘Disallowed Key Characters’ message appears.

    I am afraid technically only 7bit low-ASCII characters (and then only a subset) are allowed in URLs.

    Is there any way to a) allow these characters in EE URLs, or b) disallow them in usernames? Or is there some other way out of this?

    Both approaches would work, I think, but require some custom code, either at the time of displaying them or when signing up. Couldn’t you use a function that makes the username url safe, as it were?

  • #3 / Dec 07, 2010 6:10am

    MID

    166 posts

    Thanks!

  • #4 / Dec 07, 2010 4:01pm

    Ingmar

    29245 posts

    I trust that helped? Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases