When I copy some multiline text from powershell in windows 10 into Kate, placing it in a multi-line comment in a Python script, and then try to run the same script again; I get an error :
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 228-229: truncated \UXXXXXXXX escape
Asked
Active
Viewed 45 times
1

crazyfox
- 155
- 1
- 1
- 8
-
2Have you tried making it a raw string by appending an `r` before the opening quote? – GordonAitchJay Mar 09 '23 at 01:10
-
1that worked, thanks. I am transitioning to Windows and getting used to escape and other symbol differences – crazyfox Mar 09 '23 at 01:25