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.
'<' == '<' // true
complete reference accented chars here
Comments
Post a Comment