User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 06/11/2009

Hi,
I have been trying to submit some news articles to Open Calais API, via the Enlighten(ApiKey, content, paramsXml) method, however when the article contained a £, or euro or Yen character Open calais returned the content is invalid: 'null' error, see below:

<Error Method="ProcessText" calaisRequestID="5535ee7d-4868-29ae-12f0-c1b5b262c6cd"
CreationDate="2011-03-31 09:30:10" CalaisVersion="R4.3_7.1.1103.5">
<Exception>content is invalid: 'null' .</Exception></Error>
Does this mean, that the english version of Open calais API only supports ASCII characters, or am I missing something?? Of-course the $ sign doesn't cause any problems (since it is also an ASCII character). I would find it rather odd, if unicode wouldn't be supported, that is the API throws exceptions left and right rather than deal with it more gracefully.
btw. just for reference this is the paramsXml I used:

<c:params xmlns:c="http://s.opencalais.com/1/pred/">  <c:processingDirectives c:contentType="text/raw" c:outputFormat="xml/rdf" c:reltagBaseURL="" c:enableMetadataType="GenericRelations" c:calculateRelevanceScore="true" c:discardMetadata="" />  <c:userDirectives c:allowDistribution="true" c:allowSearch="true" c:externalID="" c:submitter="" />  <c:externalMetadata /></c:params>
I would be very gratefull to hear from you soon.
Thanks and best regards,
Martin Sykora

Trackback URL for this post:

http://www.opencalais.com/trackback/101439

Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 06/11/2009

hmm... sorry for the late reply I'll try to re-create the issue again. I've resolved it by using ASCII characters instead. It must have been to do with the character encoding shurely, UTF-8 it is then. I'll post back with the issue if I can get around to re-creating it. Thanks.

User offline. Last seen 2 weeks 3 days ago. Offline
Joined: 12/15/2010

Can you please post your text, so I'll check it.
You can test it your self using http://viewer.opencalais.com.