I have special characters in my json response which are german umlauts (ä,ö,ü).
I have set the encoding to UTF-8 and this should work but the output from dataweave is ü and ä and ö
and it is a com.mulesoft.weave.reader.ByteArraySeekableStream
datatype.The input is a byte[]
.
How can I set my workflow up so the response shows the umlauts and not junk?
Dataweave Input Payload:
{
"id": 1234567890
"name": "prod123",
"desc": "ü and ä and ö"
}
Dataweave Mapping:
%dw 1.0
%input payload application/json
%output application/json encoding="UTF-8"
---
{
"status": 0,
"desc": payload.desc
}
JSON Response:
{
"status": 0,
"desc": "ü and ä and ö"
}