Skip to:

Diacritic letters i username? Like Göran

  • Göran


    My name is Göran but when I test bbPress and use my name as username I am called Gran and when I try to use Göran to get around the problem I get Goumlran as my name. How can I solve this? I want users to be able to use their real names including all Swedish letters.

Viewing 8 replies - 1 through 8 (of 8 total)

  • _ck_


    This should fix it:

    I need to find out if this is fixed by default in 0.8.4

    That plugin is old and won’t work with 0.8.4 (and maybe not with

    Once 0.8.4 is released this should work as a plugin for both WordPress and bbPress:

    Plugin Name: Lax user names
    Plugin URI:
    Description: Makes all user name sanitisation non-strict
    Author: Sam Bauers
    Version: 0.0.1
    Author URI:

    function i18n_sanitize_user($username, $raw_username = false, $strict = false) {
    if ($strict) {
    return sanitize_user($raw_username);
    } else {
    return $username;

    add_filter('sanitize_user', 'i18n_sanitize_user');



    Thanks for answering but I do not understand how to use it. Should I save a php-file with this code and name it Laxusernames.php? Where shall I place it and how does it start?

    Please advice me!

    Sam Bauers


    Place it in a folder called “my-plugins” (create it if it doesn’t exist). Then go to the admin area and activate the plugin.



    Thank you for trying but it does not work. I placed the plugin in the folder bb-plugins and activated it. Before your answer I tried as “Göran Åsnäs” which was tranformed to “Gran sns” and after activating the plugin I tried as “Örjan Ågrän” which was tranformed to “rjan grn”. No success at all. I run bbPress upgraded from an earlier version yesterday. My forum is at

    This must affect a lot of users, I know at least one other Swedish forum having the same problem and there must be many in other countries as well.

    Help would be very useful and appreciated!


    the “Lax user names” plugin of Sam doesn’t work in bbPress 1.0 alpha 1



    Try these?

    The concept is fairly straightforward.

    And “sanitize_user” is still used in bbPress 1.0

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar