Unicode character from concatenated variable

I have a dynamic variable storing the hex value of a Unicode character that I need to write to console. If I type it out, it works fine, but this variable changes constantly.

Console.WriteLine("uE109"); \This works great. string uHex = "E109"; Console.WriteLine("u"+uHex); \This fails as expected due to bad escape with "u" 

I’ve been looking for hours. What’s the proper way to accomplish what I’m trying to do here?

submitted by /u/NorthboundFox
[link] [comments]

Leave a Reply