troubleshooting Question

string unicodeString = "\u0061"; replace 61 with another digit

Avatar of TransBind
TransBind asked on
C#
4 Comments1 Solution823 ViewsLast Modified:
I would like to replace 61 with 62 or 63 in my code and I can't seem to do that
string unicodeString = "\u0061";
textBox2.Text = unicodeString;
--------------------------------------------
when i try to combine a string like so
string unicodeString = "\u00" + "61";
or
string unicodeString = "\u" + "00" + "61";
I get an error: Unrecognized escape sequence


I tried experimenting with replace but it doesn't work because after this command
string unicodeString = "\u0061";
string unicodeString contains letter "a" already it needs to be formatted somehow in a different way
so unicodeString .Replace() will not work.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros