I want characters like \'ø\' to be printed directly, but in the source \'ø\' shows up as ø
ø
If the output goes through Html.Encode()
Html.Encode()
You could try to create output with <%= instead of html encoded <%:
<%=
<%:
(I post this after your positive comment to my comment)