Removing string accents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnny Jörgensen

    #1

    Removing string accents

    Has anyone got a good idea as to how I can systematically remove accents
    from characters in a string?

    I.e. I want to do a function that can change "Ségolène Royal" (just to take
    a current example) to "Segolene Royal" and the Swedish "förära" till
    "forara" etc...

    It is not important which language the string is in - all accents should be
    removed. Of course I can do a replace for each character, but if theres an
    easier way that will ensure that I don't forget any characters then I would
    like to know.

    Cheers,
    Johnny J.


Working...