Hi All,
I am having trouble displaying an alert message in Spanish in my JSP. the local and everything is getting picked up currently but the spanish accents are not getting converted. Here is an example of what I am trying to do. I want to display the message "Email is required" in spanish using a window.alert() method.
so when i code it like
<script language="javascript" type="text/javascript" >
function showMsg()
{
window.alert('Direcci& #243;n de correo electr& #243;nico obligatorio.' + '\n');
}
</script>
<a href="javascript:alert('Direcci& #243;n de correo electr& #243;nico obligatorio.' + '\n');" > test1 </a>
<br>
<br>
<a href="javascript:showMsg();">test2</a>
the first link "test1" works fine. but the second link "test2" does not translate the '& #243;' to the corresponding accent but displays it as it is.
I added a space after the '&' symbol for the purpose of this post as the accent was getting translated.
Can anyone help me with this.Thanks in advance
[ June 30, 2008: Message edited by: ramana neelam ]
[ June 30, 2008: Message edited by: ramana neelam ]