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

C

COHENMARVIN

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
 
G

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)

in vb.net use String.Replace(mystr,chr(194),String.Empty) or
String.Replace(mystr,"À",String.Empty)
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top