what if i am not the one doing the open? the file is already open. it might be stdin. it might be passed by a call to this code. it might be returned from a function call.
is there a change_encoding() call that i could use instead of open()?
and it looks like Python3 still needs some more tweaks. the print() function complains about the "ascii" encoding if given a Unicode character to print on a platform that supports UTF-8, yet has no support for an encoding option to fix it.
Python3 is not ready for prime time (not that Python2 is even close).
i was moving over to Python3 fully, abandoning Python2. i think i need to cancel that plan.
Python3 needs to assume the world is Unicode/UTF-8 and deal with the few exceptions as special cases.
there should be a
is there a change_encoding() call that i could use instead of open()?
and it looks like Python3 still needs some more tweaks. the print() function complains about the "ascii" encoding if given a Unicode character to print on a platform that supports UTF-8, yet has no support for an encoding option to fix it.
Python3 is not ready for prime time (not that Python2 is even close).
i was moving over to Python3 fully, abandoning Python2. i think i need to cancel that plan.
Python3 needs to assume the world is Unicode/UTF-8 and deal with the few exceptions as special cases.
there should be a
sys.encoding()
function that sets a program-wide encoding for everything.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.