Message146422
| Author |
ubershmekel |
| Recipients |
ishimoto, terry.reedy, ubershmekel, vstinner |
| Date |
2011年10月26日.07:02:40 |
| SpamBayes Score |
6.5140455e-05 |
| Marked as misclassified |
No |
| Message-id |
<1319612560.91.0.441550203825.issue13247@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Another option btw is to use utf-16, which will work but it's a bit ugly as well:
>>> os.listdir(os.path.abspath(u'.').encode('utf-16'))
[]
>>> os.path.abspath(u'.')
u'C:\\Users\\alon\\Desktop\\\u05e9\u05dc\u05d5\u05dd'
>>> os.path.abspath(u'.').encode('utf-16')
'\xff\xfeC\x00:\x00\\\x00U\x00s\x00e\x00r\x00s\x00\\\x00a\x00l\x00o\x00n\x00\\\x
00D\x00e\x00s\x00k\x00t\x00o\x00p\x00\\\x00\xe9\x05\xdc\x05\xd5\x05\xdd\x05'
>>> os.listdir(os.path.abspath(u'.').encode('utf-16'))
[]
Tested on python 2.7, but you know what I mean. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月26日 07:02:40 | ubershmekel | set | recipients:
+ ubershmekel, terry.reedy, ishimoto, vstinner |
| 2011年10月26日 07:02:40 | ubershmekel | set | messageid: <1319612560.91.0.441550203825.issue13247@psf.upfronthosting.co.za> |
| 2011年10月26日 07:02:40 | ubershmekel | link | issue13247 messages |
| 2011年10月26日 07:02:40 | ubershmekel | create |
|