# Unicode usernames

**URL:** https://meta.discourse.org/t/unicode-usernames/277878
**Category:** Development
**Tags:** rest-api
**Created:** [September 5, 2023, 4:50pm UTC](https://meta.discourse.org/t/unicode-usernames/277878 "2023-09-05T16:50:44Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![zengyunsi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zengyunsi/32/265722_2.png) [@zengyunsi](https://meta.discourse.org/u/zengyunsi)
#### Post date: [September 6, 2023, 4:33pm UTC](https://meta.discourse.org/t/unicode-usernames/277878/15 "2023-09-06T16:33:19Z")

</div>

1. 1: the header cannot contain Chinese characters
2. 2: utf8 refers to the content in the post, not the header
3. 3: Discourse is not decoded by UrlEncode, it will show that the username does not exist.

**The following test data is provided**

```plaintext
https://www.baowei.ink/posts.json

```

```plaintext
{
  "title": "标题标题标题标题标题",
  "raw": "标题标题标题标题标题标题标题标题标题标题",
  "category": 10,
}

```

**Pass**

```plaintext
Content-Type: application/json; charset=UTF-8
Api-Key: «redacted»
Api-Username: system

```

**Fail**

```plaintext
Content-Type: application/json; charset=UTF-8
Api-Key: «redacted»
Api-Username: 风之旅人

```

```plaintext
Content-Type: application/json; charset=UTF-8
Api-Key: «redacted»
Api-Username: %E9%A3%8E%E4%B9%8B%E6%97%85%E4%BA%BA

```

Thank you! Michael Brown

---

_[View the full topic](https://meta.discourse.org/t/unicode-usernames/277878)._
