Hi Stefano,

URL-encoding the text once, for example using for example with
java.net.URLEncoder.encode, should be sufficient to send it to the web
service and to get proper entity annotations.

If this is not the case for you, please send the example that fails.

Cheers,
Max

On Thu, May 17, 2012 at 6:40 PM, Stefano Ortona <[email protected]> wrote:
> Hi everybody,
>
> I'm trying the REST web-service and for some kind of text i get a weird 
> situation: I encode the text as UTF-8 and in this way i get a 400 error from 
> the server. But if I encode the same text twice, it goes fine and server can 
> process the request.
> Unfortunatelly encoding text twice add additional character to the original 
> text and Spotlight doesn't recognize the entities as it should.
> Any suggestion? (I know that including the service in my own 
> server/application would solve the problem, but before doing that i'd like to 
> try the service).
>
> Cheers,
> Stefano
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dbp-spotlight-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to