python Programming Glossary: error.end
latin-1 to ascii http://stackoverflow.com/questions/1382998/latin-1-to-ascii care of whole range of un encoded char from error.start to error.end # coding utf 8 import codecs This is more of visual translation.. just convert first hence return error.start 1 instead of error.end return latin_dict error.object error.start error.start 1 codecs.register_error.. only first of these e.g. if I add print error.start error.end to error handler output is ¼ éÃñ§ ë » ¼ ö ® © 0 1 2 10 3 10..
|