diacritics - Accented characters using jquery -


i have script included in body of html file:

<script> function read() {     $.get("prevision.txt", function(data) {         $('#prev').html(data);     }); }  $(document).ready(read); </script> 

when there accent included in .txt file, #prev shows: � instead of accent.

i have files encoded utf-8. how can solve this?

thanks

use html codes instead of true characters.

for ex.

'<' == '&lt;' // true 

complete reference accented chars here


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -