Skip to main content
4 of 4
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/

See "How do comment @replies work?" and "@Peter works for Péter Török?".

Comment replies will often work with unicode. EG: Péter Török can be reached by both @Peter and @Péter.


These are the documented rules (Not checked against latest source) for converting user display_name to comment-reply @names:

  1. Remove any spaces.
  2. Single quotes, dots, dashes and underscores should not be removed.
  3. Special characters are replaced with their simple equivalent.
    The rules for that were last documented in this answer from Jeff Atwood. For convenience the last posted remap code was:
public static string RemapInternationalCharToAscii (char c) {
    string s = c.ToString ().ToLowerInvariant ();
    if ("àåáâäãåą".Contains (s) ) {
        return "a";
    } else if ("èéêëę".Contains (s) ) {
        return "e";
    } else if ("ìíîïı".Contains (s) ) {
        return "i";
    } else if ("òóôõöøőð".Contains (s) ) {
        return "o";
    } else if ("ùúûüŭů".Contains (s) ) {
        return "u";
    } else if ("çćčĉ".Contains (s) ) {
        return "c";
    } else if ("żźž".Contains (s) ) {
        return "z";
    } else if ("śşšŝ".Contains (s) ) {
        return "s";
    } else if ("ñń".Contains (s) ) {
        return "n";
    } else if ("ýÿ".Contains (s) ) {
        return "y";
    } else if ("ğĝ".Contains (s) ) {
        return "g";
    } else if (c == 'ř') {
        return "r";
    } else if (c == 'ł') {
        return "l";
    } else if (c == 'đ') {
        return "d";
    } else if (c == 'ß') {
        return "ss";
    } else if (c == 'Þ') {
        return "th";
    } else if (c == 'ĥ') {
        return "h";
    } else if (c == 'ĵ') {
        return "j";
    } else {
        return "";
    }
}
Brock Adams
  • 13k
  • 5
  • 39
  • 64