How do I replace an unwanted unicode character in my string?

Discussion in 'ASP .Net' started by COHENMARVIN, Jul 10, 2008.

  1. COHENMARVIN

    COHENMARVIN Guest

    I have a string with an unwanted unicode character. It looks like an
    'A' with a tilde on top. I looked up a unicode chart on the internet
    and the chart says that its represented by Â
    So I think that means that the unicode number in base 10 is 194.
    So I want to do a String.Replace(mystr,194,''c)
    But how do I convert the 194 into a Char, and how do I replace that by
    blanks.
    Thanks,
    Marvin
     
    COHENMARVIN, Jul 10, 2008
    #1
    1. Advertisements

  2. in vb.net use String.Replace(mystr,chr(194),String.Empty) or
    String.Replace(mystr,"À",String.Empty)
     
    Alexey Smirnov, Jul 10, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.