javascript - Special Characters turn to html code C# -


in web app, sending strings server, , using them in js

var texts = {     fillallfieldserror: '@texts.fillallfieldserror',     passwordchangesuccess: '@texts.passwordchangesuccess' } 

the strings coming server have special characters "Ø,Æ" etc.. turn html code "forespørsel".

does know how solve it? using utf-8 encoding

<meta charset="utf-8" /> 

using @html.raw() correct approach.