# 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:** 2

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [September 5, 2023, 5:06pm UTC](https://meta.discourse.org/t/unicode-usernames/277878/2 "2023-09-05T17:06:41Z")

</div>

> [@zengyunsi](#):
>
> Currently discourse unicode usernames does not work with the api

I just tried this and it works for me:

```plaintext
○ → curl -s -L -H 'api-key: «redacted»' -H 'api-username: doesnotexist' https://try.discourse.org/u/运思/notifications.json
{"errors":["You are not permitted to view the requested resource. The API username or key is invalid."],"error_type":"invalid_access"}

○ → curl -s -L -H 'api-key: «redacted»' -H 'api-username: 运思' https://try.discourse.org/u/运思/notifications.json | jq '.users[0]'
{
  "id": 41,
  "username": "运思",
  "name": "Michael Brown",
  "avatar_template": "/user_avatar/try.discourse.org/运思/{size}/208_2.png",
  "trust_level": 1,
  "assign_icon": "user-plus",
  "assign_path": "/u/运思/activity/assigned"
}

```

Can you demonstrate how it fails for you?

---

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