I’m trying to replace some diacritics (accent) caracters in plain javascript. but I have no clue on what to do. My problem is that we use the charset iso-8859-1. If we’d use the utf-8, it would have been easier. I’m trying to make someting like this script here (that works in UTF-8 encoding).
Can anyone help me on this one ? If I could just have the syntax for a replace from “é” to “e” I’d do the rest just fine. I tried some things with \xE9 but not beeing very familiar with regular expressions, I couldn’t make it work.
Finally I found this regex syntax :