read Unicode characters one by one in python2
Karsten Hilbert
Karsten.Hilbert at gmx.net
Sat Feb 24 12:31:11 EST 2018
On Sat, Feb 24, 2018 at 10:17:35AM -0600, Peng Yu wrote:
> Here shows some code for reading Unicode characters one by one in
> python2. Is it the best code for reading Unicode characters one by one
> in python2?
>
> https://rosettacode.org/wiki/Read_a_file_character_by_character/UTF8#Python
This seems off, because in Python2 you can also specify an
encoding.
However, you seem to be asking about reading the console
which comes with more caveats.
So, what is it ?
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
More information about the Python-list
mailing list