Hi Max,
here an example of text
Residential Search List Page - Mortgage advice from SPF, WT.conv, Mortgage
Advice From SPF, WT.tx_e, conv, WT.dl, 85], selector:a[href*=mortgages]}]},
Encoding it once simply doesn't work and return a 400 Error, i have to encode
it twice (and yes I'm using java.net.URLEncoder).
Cheers,
Stefano
On 17/mag/2012, at 19.07, Max Jakob wrote:
> 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