This block of code gives me code । instead of "।", so how to change । again into "।". "।" is Hindi Full Stop Character known as Purnviram. This code works fine to convert dot(.) into "।" but on blogger.com, it fails to convert(.) into Purnviram(।)/Danda/Small pipe/a Hindi language special character. see Link I have added the save code on the link
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function() {
$('textarea').on("keyup", function(e) {
var val = $(this).val();
var str = val.replace('.', '।');
$(this).val(str);
});
});
</script>
<textarea></textarea>