First of all, using Show The error message comes from the shell which is being used to execute the command above (probably BASH). The character The problem is most likely inside of the The other solution is to pass
Note: You should split the Related:
Escape CharactersTo insert characters that are illegal in a string, use an escape character. An escape character is a backslash An example of an illegal character is a double quote inside a string that is surrounded by double quotes: ExampleYou will get an error if you use double quotes inside a string that is surrounded by double quotes: txt = "We are the so-called "Vikings" from the north." Try it Yourself » To fix this problem, use the escape character ExampleThe escape character allows you to use double quotes when you normally would not be allowed: txt = "We are the so-called \"Vikings\" from the north." Try it Yourself » Other escape characters used in Python:
Hello @Henri.GARDON How did you send the password to the HTTP request? My test password contains the "@", "#","!", etc. but I can manage to send the password to the RDP Auth Service by cover it with a double-quote (" ") like the following example: python market_price_rdpgw_service_discovery.py --user machine-id --password "<The password with @, #, !, = , ...>" --clientid app_key java MarketPriceRdpGwServiceDiscovery --user machine-id --password "<The password with @, #, !, = , ...>" --clientid app_key Author: Pawel Krawczyk Password special characters is a selection of punctuation characters that are present on standard US keyboard and frequently used in passwords.
The same list as string (between double quotes): Various operating systems and applications may apply limitations to this set:
How do you escape special characters in Python?Escape sequences allow you to include special characters in strings. To do this, simply add a backslash ( \ ) before the character you want to escape.
How does Python handle special characters in password?Simply use \ character before '!' or other special characters. Show activity on this post. Python does not like the special characters.
How do you add a special character to a password in Python?To insert characters that are illegal in a string, use an escape character. An escape character is a backslash \ followed by the character you want to insert.
How do you escape characters for password?To escape \ , $ , ' , and " , use a double quotation mark around the password or use the back slash (\) as the escape character.
|