1

I have to following string:

Dim text As String = "user̲upload"

I want to change the Unicode character @0332 to underscore. I have the following code for this:

Dim test As New Text.StringBuilder
test.Append(text.Replace("@0332", "_"))
Dim normalizedUrl As String = test.ToString()

However it does not work, my "test" string has the same value as "text" variable. Anyone has an idea what can be wrong?

4

1 回答 1

1

你可以;

text.Replace(ChrW(&H332), "_")

于 2013-06-21T10:52:24.317 回答