Accent problem when filling a text field!

Accent problem when filling a text field!

Hey, what's up everybody!


I'm having a little problem in my system and I would appreciate your help:


I have an input field in my form and when I fill it from an external .js(file) with an encoded accent, it doesn't "change" the encoded accent to it's real accent.


For Example:


(in my html file)
  1. <input type="text" id="test">


(in my external js file)
  1. $(document).ready(function(){
  2.  $("#test").val("writing an accent like this: &ccedil; &atilde; &aacute;");
  3. });
When i check the html file, it appears exactly like i wrote, and it doesn't convert the "&ccedil;" code to "ç", like html does.

Is there a way I can fix it?

Thanks in advance,

Thad.