# 用户名中删除了特殊字符

**URL:** <https://meta.discourse.org/t/dropped-special-characters-in-usernames/125378>\
**Category:** Support\
**Created:** [2019年八月10日 02:33 UTC](https://meta.discourse.org/t/dropped-special-characters-in-usernames/125378 "2019-08-10T02:33:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)\
**Post date:** [2020年二月3日 16:51 UTC](https://meta.discourse.org/t/dropped-special-characters-in-usernames/125378/6 "2020-02-03T16:51:08Z")

</div>

我们在 SSO 方面也遇到了同样的问题，用户名被转换了。

我之前在 [这里](https://meta.discourse.org/t/unicode-usernames-and-group-names/117737/18?u=mentalstring) 提到过这个问题，但这个话题更新一些——也许有人可以查看一下。

随着对用户名和组名引入 Unicode 支持，现在可以使用像 `中国` 这样的用户名（这很棒！），但 Discourse 不允许用户名以连字符开头或结尾（但下划线等符号是可以的）。

禁止在首尾位置使用连字符有什么原因吗？如果这样做没有明显的弊端，是否有机会修订这一政策？/cc @Falco

---

_[View the full topic](https://meta.discourse.org/t/dropped-special-characters-in-usernames/125378)._
