Recently, I tried to work with IBM's Watson text assistant. I chose to program it with Java and everything worked alright until I tried to use German phrases, which use umlauts [ä, ö, ü].
The skill language is also German.
When receiving a response from the API, all umlauts where replaced by �.
Here's the code:
public String inquiry(String anfrage){
MessageInput input = new MessageInput();
input.setText(anfrage);
MessageOptions options = new MessageOptions.Builder(WORKSPACEID)
.input(input)
.build();
MessageResponse response = assistant.message(options)
.execute()
.getResult();
return response.getOutput().getGeneric().get(0).text();
}
Do you know a way to properly get umlauts from the IBM API?