https://www.themoviedb.org/tv/1398-the-sopranos requires a utf8_decode to correctly process the overview.
https://www.themoviedb.org/tv/1516-the-a-team seems to have some strange uac codes in the json.
The following php works on most (Sopranos included), but nothing I try clears up the overview of 'The A-Team'.
mb_convert_encoding($str, 'UTF-8', "auto");
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط ElgarL
در تاریخ مارس 15, 2014 ساعت 11:47 ق.ض
"title":"Ã\u2020on Flux"
This isn't properly encoded or UTF8.
Not sure if this page will display properly, but the original is 'Æon Flux'
پاسخ توسط Travis Bell
در تاریخ مارس 15, 2014 ساعت 1:11 ب.ض
Hi Edgar,
I can't seem to reproduce this. Here's the cURL output for Aeon Flux:
Which has the correct entity.
It looks to me like you're not using a JSON library that is handling the UTF-8 entities properly. Take a look at this Gist for an example of what I just tried.
And if I reference this UTF-8 table,
\xc3\x86
is the valid UTF-8 entity for Æ.پاسخ توسط ElgarL
در تاریخ مارس 15, 2014 ساعت 1:36 ب.ض
Very sorry I'm wrong here. My Java IDE was not set to UTF-8 so it was messing up the received data.
پاسخ توسط Travis Bell
در تاریخ مارس 15, 2014 ساعت 1:43 ب.ض
No worries!
پاسخ توسط Chukwuka
در تاریخ آوریل 11, 2015 ساعت 11:41 ب.ض
Hello, can anybody please tell me an example of a json document request for a particular movie details such as it poster picture and genre and cast? The http://docs.themoviedb.apiary.io/ does not give a very helpful example. I want a JSON returned data which i can use to display details. Thank you
پاسخ توسط Travis Bell
در تاریخ آوریل 12, 2015 ساعت 10:27 ق.ض
HI Chukwuka,
Would you mind going to the API forum and creating a new thread? That way we can keep conversations straight and in one place. Unfortunately I can't move just a single post into a new thread so this is something you'll need to do.
پاسخ توسط Chukwuka
در تاریخ آوریل 12, 2015 ساعت 11:31 ق.ض
Hi Travis, I just opened a new thread now. It's called "Help needed for JSON image and data parsing example "