I am trying to build a small Web API in .Net (Minimal Web API wit .Net 6.0) but I need the response to be of type application/json and UTF-16LE encoding. Is there a possibility to do so?
I build the Api using the minimal template and it works fine but the encoding is by default UTF-8. I searcht for awnsers in the documentation from microsoft and here on stackoverflow but did not really find something which awnserd my question.