Jump to content

Python 2.5 -> 3.0


Recommended Posts

In Python 2.5, I could just do this:

root = "C:\Users\Administrator\Desktop\webserver\htdocs"

and it would create a string, now in 3.0, I get an error:

 

(unicode error) 'unicodeescape' codec can't decode bytes in position 2-4: truncated \UXXXXXXXX escape

 

What does that mean, and what do I do to fix it?

Link to comment
https://forums.phpfreaks.com/topic/147704-python-25-30/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.