Skip to content

Allow Unicode characters including emojis in nicknames#18

Open
JamesTsetsekas wants to merge 1 commit into
kaganisildak:mainfrom
JamesTsetsekas:feature/unicode-emoji-nicknames
Open

Allow Unicode characters including emojis in nicknames#18
JamesTsetsekas wants to merge 1 commit into
kaganisildak:mainfrom
JamesTsetsekas:feature/unicode-emoji-nicknames

Conversation

@JamesTsetsekas

Copy link
Copy Markdown

🌍 Allow Unicode characters including emojis in nicknames
This update removes the restrictive alphanumeric-only validation for nicknames and replaces it with Unicode-friendly validation that allows emojis and international characters while still preventing potentially harmful control characters.

Changes:

Replaced isalnum() check with control character filtering
Users can now use emojis like 🟧Python, 🚀Alice, or international names like José, محمد
Still blocks control characters (\n, \r, \t, \0) for security
Maintains existing length limits and reserved name restrictions

Example usage:

> /name 🟧Python
» Nickname changed to: 🟧Python

This makes BitChat more inclusive and expressive while maintaining security standards! 🎉

@o-murphy

Copy link
Copy Markdown

@JamesTsetsekas Does it is supported by original API?

@JamesTsetsekas

Copy link
Copy Markdown
Author

tbh im not sure, i just noticed on my android client i was able to put emojis in my name and wanted similar functionality in this project.

@o-murphy

Copy link
Copy Markdown

tbh im not sure, i just noticed on my android client i was able to put emojis in my name and wanted similar functionality in this project.

current problem is new noise protocol not supported by android app

@o-murphy

o-murphy commented Jul 27, 2025

Copy link
Copy Markdown

@JamesTsetsekas can I add this changes it to #7?

@JamesTsetsekas

Copy link
Copy Markdown
Author

@JamesTsetsekas can I add this changes it to #7?

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants