Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11463
| Date | 2011-08-15 08:20 -0700 |
|---|---|
| From | Artie Ziff <artie.ziff@gmail.com> |
| Subject | string to unicode |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12.1313421630.27778.python-list@python.org> (permalink) |
if I am using the standard csv library to read contents of a csv file which contains Unicode strings (short example: '\xe8\x9f\x92\xe8\x9b\x87'), how do I use a python Unicode method such as decode or encode to transform this string type into a python unicode type? Must I know the encoding (byte groupings) of the Unicode? Can I get this from the file? Perhaps I need to open the file with particular attributes? thanks!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
string to unicode Artie Ziff <artie.ziff@gmail.com> - 2011-08-15 08:20 -0700 Re: string to unicode Tim Roberts <timr@probo.com> - 2011-08-16 17:32 -0700
csiph-web