I have this string 'dwaiuhnd2\{daoiwudhja'
that is password.
I want to check if the password is correct but it always gives me an error because of the spacial character.
So I just want the original string but I get 'dwaiuhnd2{daoiwudhja'
.
How do I correct this behaviour?
Thanks
Asked
Active
Viewed 21 times
0
-
2in a string literal, you escape it, using \ ... so \\ is \ – Bravo May 02 '22 at 08:45
-
What error do you get exactly *where*? There's no reason to get any error from a string containing a backslash, unless you're doing something with it you shouldn't. – deceze May 02 '22 at 09:17