tags:

views:

53

answers:

1

Hello!

I am trying to build a news reader that is using the Bing News API. When I am using a keyword that does not use special characters the result displays fine on the page but if I use for example Ö I get errors, BUT if I save the results (because the API delivers fine results even when using Ö) in a local file and use that to print data it all works perfectly fine.

I have been struggeling with this for days now.

To summorize it all: When I do a remote JSON call to the Bing API and try to display it on a page there is an error, but when I use the same JSON output from a locally saved file it works fine! What can be wrong? Please help!

I am using PHP 5.2

A: 

I made a breakthrough, it works perfectly fine on my local computer (wamp-server) but when I upload it to my real server it still shows the same problems as before!

To get it to work on my local computer I only URLencoded the keyword I use in the API call and now it work, but still not on the real server, very strange.

I thought it could be a problem with the PHP version so I updated it on the server to 5.3.2 (higher than on my local PC which got 5.3.0), still fails.

Is there any other things I perhaps missed, some settings on the PHP or server or a module I have not yet activated/installed?

Jonathan Clark