mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1410] possible bug with python - unicode emoji #993
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#993
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Diglador on GitHub (Aug 2, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1410
🐞 Describe the bug
Unicode emojis if more than "some" will break message or leading to send message as attachment (not full anyway)
#!/usr/bin/env python3
import requests
requests.post("https://ntfy.sh/test",
data="this is test\U0001f94a A \U0001f7e6 B \U0001f7e6 C ",
headers={
"X-Title": "test",
"Priority": "3",
"Tags": "red_square"
})
💻 Components impacted
💡 Screenshots and/or logs
🔮 Additional context
@binwiederhier commented on GitHub (Aug 8, 2025):
This seems to work just fine:
Must be something in your environment. Closing this for now.
@Diglador commented on GitHub (Aug 9, 2025):
och sorry , i just tested it with second linux distro where it works.....so yes , something wrong with python "requests" library.
Och God.....its a simple requests library. But ok - its an older Debian version.
Workaround solved my problem:
data= "this is test\U0001f94a\ A \U0001f7e6\ B \U0001f7e6 C ".encode('utf-8'),
Sorry for your time. Big apologies.