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
:
- Remove any spaces.
- Single quotes, dots, dashes and underscores should not be removed.
- 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 "";
}
}