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