source:
trunk/essentials/dev-lang/python/Lib/test/test_doctest4.txt@
3951
| Last change on this file since 3951 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 314 bytes | |
| Line | |
|---|---|
| 1 | This is a sample doctest in a text file that contains non-ASCII characters. |
| 2 | This file is encoded using UTF-8. |
| 3 | |
| 4 | In order to get this test to pass, we have to manually specify the |
| 5 | encoding. |
| 6 | |
| 7 | >>> u'föö' |
| 8 | u'f\xf6\xf6' |
| 9 | |
| 10 | >>> u'bÄ |
| 11 | r' |
| 12 | u'b\u0105r' |
| 13 | |
| 14 | >>> 'föö' |
| 15 | 'f\xc3\xb6\xc3\xb6' |
| 16 | |
| 17 | >>> 'bÄ |
| 18 | r' |
| 19 | 'b\xc4\x85r' |
Note:
See TracBrowser
for help on using the repository browser.
