Hi @bioman,
thanks for pointing out compilation broke. I just fixed it: https://github.com/andrea-magni/MARS/issues/94
About the encoding, MARS is a layer of abstraction over the transport protocol (http). You implement your method (I guess) returning a Delphi string value.
MARS serializes (where needed) the values to a stream that will be used as the response of the request. Then, it's the underlying http library (MARS supports Indy, WebBroker over Apache module and IIS ISAPI and, more recently, Delphi Cross Socket framework) that sends the content to the client.
Indy has this trend of setting Content-Type=text/html; charset=ISO-8859-1 as default so sometimes you get it (when using Indy/WebBroker as http layer for MARS).
MARS (and Indy neither) can't easily say if your string is a UTF8 or MBCS or ANSI string, but you should know for sure.
So, if you are sending an UTF8 content in your string, mark your resource/method with an Encoding attribute stating so.
[GET, Path('geoconding.html'), Encoding('UTF-8')]
function MyContentGenerator: string;
Let me know if you solve this way!
Sincerely,
Andrea