Page 1 of 1

ManiaFlash webservices fails when weird unicode chars in msg

Posted: 30 Nov 2014, 17:03
by toffe
Seems that getting news from a channel fails when there is a message that contains some weird unicode characters. Or atleast I tried it with the emoji thumbs up one (http://www.iemoji.com/view/emoji/56/peo ... bs-up-sign).

To reproduce:
1. Add a new news item with just a normal text title. But with the weird unicode in it. (for example http://www.iemoji.com/view/emoji/56/peo ... bs-up-sign )
2. Publish it
3. Use WebServices to get all the news for that specific channel. You will get an empty string.

Toffe

Re: ManiaFlash webservices fails when weird unicode chars in

Posted: 02 Dec 2014, 12:22
by gouxim
Can you provide the message id or channel so we can debug this on our side?

Re: ManiaFlash webservices fails when weird unicode chars in

Posted: 02 Dec 2014, 13:12
by toffe
I posted the failing message on the channel 'toffe'.

When using the html output of the WebServices it's ok. Or atleast the output isn't empty.
(http://ws.maniaplanet.com/maniaflash/ch ... &length=10)

But when using the PHP SDK you will get:

Code: Select all

string(0) ""
when executing a var_dump on getMessages("toffe");

Toffe