Giter Site home page Giter Site logo

UTF8 about ntfy HOT 8 CLOSED

binwiederhier avatar binwiederhier commented on May 4, 2024
UTF8

from ntfy.

Comments (8)

manson avatar manson commented on May 4, 2024 1

@binwiederhier thank you. Actually I dont care about windows - I just have temporary work here, but mostly work under linux so its ok for me

from ntfy.

binwiederhier avatar binwiederhier commented on May 4, 2024

UTF-8 and even emojis are supported so I'm a little confused how that happened. Can you tell me what command you ran exactly, and what terminal and OS?

from ntfy.

manson avatar manson commented on May 4, 2024

You're right. Under linux it works fine but failed as said above under windows 10 terminal

from ntfy.

binwiederhier avatar binwiederhier commented on May 4, 2024

@manson Can you tell me the exact command you ran under the Windows 10 terminal? If I can reproduce I'm sure I'll be able to help you out or fix it.

from ntfy.

manson avatar manson commented on May 4, 2024

@binwiederhier This is command from example, I've just changed the message.
curl -d "проверка" ntfy.sh/manson_alerts
Exactly this command later I've copied into the my remote linux box bash terminal and it sent message as it should.
BTW, under windows it results in terminal with:
{"id":"vEWbgB6vQv","time":1636552487,"event":"message","topic":"manson_alerts","message":"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"}

from ntfy.

binwiederhier avatar binwiederhier commented on May 4, 2024

@manson So I will eventually try to replicate this on Windows, but I can only do that after work likely.

In the meantime, here are my initial thoughts:

  • I have had trouble with certain emojis when combining them with curl -d, e.g. curl -d "⚠️ Warning" ntfy.sh/mytopic does not work, but echo -en "⚠️ Warning" | curl -T- ntfy.sh/mytopic does. So it could be a "curl issue"
  • I am also wondering if it could be the Terminal encoding in Windows. If that's not UTF-8 then you may get garbled text like that. I don't know how to check that on Windows, but that could be a good starting point for you.

from ntfy.

binwiederhier avatar binwiederhier commented on May 4, 2024

I'll keep the ticket open then for now. I may get to it.

from ntfy.

binwiederhier avatar binwiederhier commented on May 4, 2024

Please reopen if there are more Windows UTF-8 issues

from ntfy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.