I want characters like \'ø\' to be printed directly, but in the source \'ø\' shows up as ø
If the output goes through Html.Encode()
This might not be the answer you are looking for but it is nevertheless interesting.
If you look at the HttpEncoder source code it makes provision for custom HtmlEncoders to be used instead of the default WebUtility.HtmlEncode
I have played around and found the HtmlEncoder called AntiXSS from Microsoft encodes these characters correctly.
I installed it using Nuget:
PM> Install-Package AntiXSS
And then updated my web.config as such:
....
Both normal output and Html.ActionLinks seem to work.