I have a string with escaped Unicode characters, uXXXX
, and I want to convert it to regular Unicode letters. For example:
"u0048u0065u006Cu006Cu006F World"
should become
"Hello World"
I know that when I print the first string it already shows Hello world
. My problem is I read file names from a file, and then I search for them. The files names in the file are escaped with Unicode encoding, and when I search for the files, I can't find them, since it searches for a file with uXXXX
in its name.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…