binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.4k stars 725 forks source link

Accentuated chars in the title header aren't supported #977

Closed jmnicolas90 closed 11 months ago

jmnicolas90 commented 11 months ago

:lady_beetle: Describe the bug

If I url encode accents (like é ç à è) in the title header they won't be rendered in the app.

Example: title "accentué" will look like "accentu%C3%A9" in the Android and web app.

:computer: Components impacted Android and web app, probably iOS too but I don't have a device.

:bulb: Screenshots and/or logs Screenshot_20231210_183600

:crystal_ball: Additional context It's not major, just a nice to have. Thanks for the app, it's great!

binwiederhier commented 11 months ago

ntfy supports utf-8 in headers. It's likely your library or language or OS or config not supporting it.

Please note that you can encode the headers with RFC 2047 if you don't get it to work and that'll always work. Or you can pass it via query param.

See the blue info box here https://docs.ntfy.sh/publish/#list-of-all-parameters as well as which query param to use if you choose to use that.

Feel free to drop by discord or matrix to ask for more help.