Hi,

When I am querying the view I am looking for a key such as:

91!#'3- (0/-&)1??%3/= 9;> &;%.&90$(-1?;?-'8;22:"!?#))6#8/580!, 
6,$?&)'8$?,<+/.$.:2,%:.+.93 <$&>)(!2=

I do the query: 
    Query query = new Query();
    query.setKey(key);
    result = client.query(view, query);

But when I try this (escaping the ") I get errors such as 

Exception in thread "main" java.lang.RuntimeException: Failed to access the 
view
at com.couchbase.client.CouchbaseClient.query(CouchbaseClient.java:786)
at ViewsMain.main(ViewsMain.java:182)
Caused by: java.util.concurrent.ExecutionException: OperationException: 
SERVER: bad_request Reason: invalid UTF-8 JSON: 
{{error,garbage_after_value},
                     "\"99+,337#/684;6#92/\"<4!*(% 
*'-751/,0:-*\"-:?>).%)83#1##\"&#*?)=;&\"'0.$<<->\"5/);%,),6)>!*9?8.03&,#*+?7:(\""}

Even when I don't get an error the key is not found.

Should I be using UTF8  or URLEncoder

What are the characters that are likely to cause problems?

Advice appreciated.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to