# Error 404 in profile of user with Unicode in username

**URL:** https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115
**Category:** Bug
**Tags:** size-s
**Created:** [April 4, 2022, 8:44am UTC](https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115 "2022-04-04T08:44:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![topological](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@topological](https://meta.discourse.org/u/topological)
#### Post date: [April 4, 2022, 8:44am UTC](https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115/1 "2022-04-04T08:44:15Z")

</div>

I met a bug that Profile - Activity - Topics is not working with Chinese username.

Assume the Chinese username is `快` and its Unicode is `%E5%BF%AB`. If I click Profile - Activity - Topics, it works fine because discourse queries `/topics/created-by/%E5%BF%AB.json`. But if I scroll down and want to load more, it fails with status code 404. It queries `/topics/created-by/%25E5%25BF%25AB.json?page=1` because `%` in the Unicode username is converted to `%25`.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 4, 2022, 11:49pm UTC](https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115/2 "2022-04-04T23:49:39Z")

</div>

Nice catch, we will have a look over the next 4 weeks!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 4, 2022, 4:58am UTC](https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115/6 "2022-05-04T04:58:12Z")

</div>

I have this fixed in

[https://github.com/discourse/discourse/pull/16627](https://github.com/discourse/discourse/pull/16627)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 16, 2022, 12:00am UTC](https://meta.discourse.org/t/error-404-in-profile-of-user-with-unicode-in-username/223115/7 "2022-05-16T00:00:04Z")

</div>

This topic was automatically closed after 11 days. New replies are no longer allowed.
