Swedish characters not working
  • stemidstemid November 2011

    I made an attempt to format this but I don't know what formatting options are available on this board. Of course this has been edited to leave out my URI, API key and my username.

    root@server01:~# curl -sk -u "myuser:mysecretapikey" --data-urlencode "to=myuser" --data-urlencode "msg=testaråäö" --data-urlencode "title=hejsan" --data-urlencode "uri=test" https://api.notifo.com/v1/send_notification
    {"status":"success","response_code":2201,"response_message":"OK"}
    root@server01:~# curl -sk -u "myuser:mysecretapikey" --data-urlencode "to=myuser" --data-urlencode "msg=testaroaa" --data-urlencode "title=hejsan" --data-urlencode "uri=test" https://api.notifo.com/v1/send_notification
    {"status":"success","response_code":2201,"response_message":"OK"}

    As you can see both of these commands result in an OK status code, but only the second one will be delivered. So clearly there's an issue with 8-bit characters such as the Swedish åäö.

    I believe curl is doing its job with the Swedish characters because if I redirect the request to netcat I see this.

    to=myuser&msg=testar%E5%E4%F6&title=hejsan&uri=test

    Can this be fixed?

    On a sidenote, the preview feature in this message board does not properly display the closing X, I'm using Firefox 9 Beta and it appears only if I select all text.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion