ManiaFlash webservices fails when weird unicode chars in msg

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

ManiaFlash webservices fails when weird unicode chars in msg

Post 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
User avatar
gouxim
Nadeo
Nadeo
Posts: 1186
Joined: 14 Jun 2010, 17:20

Re: ManiaFlash webservices fails when weird unicode chars in

Post by gouxim »

Can you provide the message id or channel so we can debug this on our side?
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: ManiaFlash webservices fails when weird unicode chars in

Post 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
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest