[violet] wrote:The API doc has been updated with instructions on how to answer issues via API. This is the first "Private Command" where you can actually make your nation do stuff via the API, not just gather information about it.
Wonderful!
The wording here makes me assume there are more commands to come, is that correct? If so, will there be the same system as with shards for joining several commands into one request?
It appears to be impossible to request a nation shard and execute a command in a single call, is that the intended behaviour?
I would also like to report a nasty encoding bug in the API. Specifically, I get this mess:
- Code: Select all
<NATION id="saidual"><MOTTO>Oi oi its the —unicode—police—</MOTTO></NATION>
The EM DASH character is replaced by END OF GUARDED AREA. This problem only affects the API, but I have seen it also show up when dealing with dispatch shards, so I am assuming it's not local.
The issue appears to be that somewhere on the server Windows-1252 encoded text is wrongly decoded as ISO-8859-1, then passed to the clients as an NCR. While it is technically possible to write a function to unscramble this mess, I'd rather prefer not having to do that :p