Search API in PHP code results in JSON not corect

Discussion in 'Google API' started by shmekerosu, Apr 30, 2010.

  1. #1
    Hello,

    I am using web search google API in PHP code to retrieve results and decode via JSON. Now, while most of result links (URL) look ok, some of them that have %20 (ASCII code for space) are displayed wrong by having a 25 added before.
    Ex. like:

    http://www.digilife.be/quickreferences/QRC/VB.NET%20Quick%20Reference.doc

    all is ok but the '25' code between % and 20.

    %25 is ASCII code for '%' but it is interpreted wrong by JSON or not decoded.

    Did someone have any clue how to solve this ?

    It will be much appreciated.

    Best,
    R.
     
    shmekerosu, Apr 30, 2010 IP