Component to replace accented characters in a string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Levinson [mcsd]

    #1

    Component to replace accented characters in a string

    I don't know of a component like that, but it is really
    easy to do yourself. First, the String.Replace function is
    unicode based so it's quite easy to use extended and
    standard characters interchangeably .

    What I would recommend is to create an object that holds
    the basic character and extended character in unicode (use
    this as a map for conversion) and then create a shared
    method on the object that ran the replace command and
    replaced one with the other.

    Jeff Levinson
    Author of "Building Client/Server Applications with
    VB.NET: An Example Driven Approach"
    [color=blue]
    >-----Original Message-----
    >Hi,
    >
    >I'm looking for a .net (or COM) component which can [/color]
    replace all accented[color=blue]
    >characters in a Unicode string by their non-accented [/color]
    equivalent.[color=blue]
    >
    >ie: "café" would be transformed to "cafe"
    >
    >Thanks for any information which will help me in this [/color]
    task.[color=blue]
    >
    >Hakim Bouras
    >European Society of Cardiology
    >hbouras@escard io.org
    >
    >
    >.
    >[/color]
Working...