I suppose this is connected to special characters and stuff but I've run across some problems when searching for a title using the API. Particularly, I'm having trouble retrieving information for 'Rockman.EXE Beast+' which, when searched for, returns a 'NoContent' status. I had a similar problem with Black Rock Shooter (TV) but found that simply searching for 'BRS (TV)' solved it. With 'Rockman.EXE Beast+' though, I have no idea what I should search for instead.
My guess is that this is a problem with the '+' character so I'd like to know: what should I search for in such a case?
I usually parse for special characters before turning the stream into an actual XML so, although it's troublesome, it's been ok so far. The problem is indeed with titles like these that have apparently no way to be searched for with the API and I'm afraid there are more titles in such a situation =(
Because certain characters like + are special entities in URIs and HTTP, they need to be url-encoded into % values. The hex for + is 2b so it becomes %2B and your request would start with something like:
GET /api/anime/search.xml?q=Rockman.EXE+Beast%2B HTTP/1.1
Most languages have some sort of function built in to convert ("url-encode") to this format. This should also work with unicode, though there have been occasions where malformed unicode characters in the DB entries themselves won't match the correct unicode in the query. Please let us know in the database subforum here if you encounter issues like that.
Whitespace should never exist in a url, but generally it is fixed automatically for you by the library you use to send the request. Spaces can be properly represented by %20 or simply + in the query part of the URI.