In my MVC 3 app I have several resx files with message strings such as: "Editer groupe détails"
. All these are used for either window titles or confirm/alert messages. So, in order to be able to use them in my various .js files I have created in my master page a Javascript object called localizedRessources. The problem is that the strings get altered in this object, for example, the above mentioned string becomes "Editer groupe détails"
.
What are my options here? Is there a special function that tells JS not to encode these? Is there a way to directly use the strings in my .js files? (this works, by the way, in some cases, but i would rather I didn't have too much js code in my cshtml files).
I have the <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
tag added to my <head>
element for all pages, so I am fine there.
Any suggestion is welcome.