Karthikeyan S Karthikeyan S 51 2 2 bronze badges. What does os. Give python unicode path values here; your last version would work only if the unicode snowman is really entered into the terminal as UTF8 only. Add a comment. Active Oldest Votes. Use a unicode value; preferably with a unicode escape sequence: os.
Community Bot 1 1 1 silver badge. Hubro Hubro The output would be using a single backslash before the u. MartijnPieters: I copied that directly from the interpreter. Since the output representation is a "string within a string", the backslash needs to be escaped. Right; you used just repr in the interpreter. The interpreter uses repr on that again. You'd normally leave off an explicit repr in the interpreter, or use print repr ; the point is to get a round-trippable representation, something that looks like a unicode literal that can be reused again.
The extra backslash here makes it that the value is not reusable, there is enough confusion here between the question and another answer about when to escape escapes. MartijnPieters: Fair enough. A raw unicode string retains the backslashes. For FTP access substitute "ftp:" for "http:" in any of the links given above.
Unicode Character Database. Home Site Map Search. Latest Version of the UCD. SpecificVersions of the UCD. Versions of the Unicode Standard. Enumerated Versions. I understand. Skip to content. Star Branches Tags. Could not load branches. Could not load tags. Latest commit. Git stats 13 commits. Failed to load latest commit information.
View code.
0コメント