Use the html codes instead of true characters.
for Ex.
'<' == '<' // true
complete reference for accented chars here
Question
I have this script included in the body of my html file:
<script>
function read() {
$.get("prevision.txt", function(data) {
$('#prev').html(data);
});
}
$(document).ready(read); </script>
When there is an accent included in the .txt file, the #prev shows: � instead of an accent.
I have all files encoded as UTF-8. How can I solve this?
Thanks
La solution
Use the html codes instead of true characters.
for Ex.
'<' == '<' // true
complete reference for accented chars here