'UCS-2' codec can't encode characters in position
前几天在写python程序时,遇到了以上问题,在Stackovereflow上找到了解决方案,记录一下:YourdatacontainscharactersoutsideoftheBasicMultilingualPlane.Emoji'sforexample,areoutsidetheBMP,andthewindowsystemusedbyIDLE,Tk,cannothandlesuchchar