1
I have an Asp.Net MVC project where I use Source, but I’m having problems with accentuating other special characters.
Example:
I have the following Resource:
Name | Value MSG_SESSAO_EXPIRADA | *Sessão expirada!
In my View I have:
<script type="text/javascript" charset="utf-8">
alert('@Resources.MSG_SESSAO_EXPIRADA');
</script>
The obtained is:
Sessão expirada!
I mean, he can’t display the ã
, but does the conversion.
Could someone help me?
Well, this has only happened by putting Resource directly into Javascript, but when I use it in HTML it works perfectly.
– Jedaias Rodrigues