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
ManiaFlash webservices fails when weird unicode chars in msg
Moderator: NADEO
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
ManiaFlash webservices fails when weird unicode chars in msg
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Re: ManiaFlash webservices fails when weird unicode chars in
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! 

- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: ManiaFlash webservices fails when weird unicode chars in
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:
when executing a var_dump on getMessages("toffe");
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) ""
Toffe
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller

Who is online
Users browsing this forum: No registered users and 1 guest