I am trying to query on "15" Monitor" (or anything with a double-quote
in it).

I am using the Java API to set this String as-is to the
GoogleBaseQuery classes' setGoogleBaseQuery.

ex:
query.setGoogleBaseQuery(fullQuery);

When I send my query to the Google base API this is the URL it is
sending.  It appears it has escaped the double quote with %22.  Seems
right.

http://www.google.com/base/feeds/snippets/-/products?alt=atom&start-index=1&max-results=10&crowdby=customerid%3A1&bq=15%22+Monitor+&orderby=relevancy&content=thumbnails

I get the following however from Google Base when using this URL.
<errors>
<error type="request" reason="Invalid query: QUOTE expected, but
RPAREN found"/>
</errors>

I have also tried URL encoding the String passed into
setGoogleBaseQuery using Java's URLEncoder and this also through an
error.  Any suggestions?

URLEncoder.encode(query,"UTF-8");

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to