Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for answer to python change character encoding to utf_8 by Vivek Sable

Current License: CC BY-SA 3.0

Post Revisions

7 events
when toggle format what by license comment
Oct 22, 2015 at 11:02 vote accept Community Bot
Oct 22, 2015 at 9:17 comment added Vivek Sable @MehmetYenerYILMAZ: you write only sys.setdefaultencoding("utf-8") then it will show exception.. we have to write try and excpet block too
Oct 22, 2015 at 7:11 comment added user4005632 I see your answer wil lsolve my problem but there is an exp :'module' object has no attribute 'setdefaultencoding'"
Oct 22, 2015 at 6:56 comment added Vivek Sable @MehmetYenerYILMAZ: hi can you add sys.setdefaultencoding("utf-8") in your code, as mansion above
Oct 22, 2015 at 6:48 history edited Vivek Sable CC BY-SA 3.0
added 349 characters in body
Oct 22, 2015 at 6:36 comment added user4005632 there is no file like sitecustomize.py in /usr/lib/python2.6.. but site-packages. no in it too
Oct 22, 2015 at 6:26 history answered Vivek Sable CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /