猿问

Python 设置UTF-8后仍然乱码

刚刚学习下这门语言就被困住了 我在最前面设置了UTF-8 请问为什么还是出现乱码问题啊?

该如何解决呢?

编辑器:Sublime Text 3

http://img.mukewang.com/593242cc0001ff0f03020047.jpg


慕粉4408023
浏览 2752回答 1
1回答

孤独的小猪

这个不是python的问题,而是使用的windows的dos窗口不是utf8编码,你可以直接用python自带的idle跑代码,或者直接用sublime设置python解释器直接跑。再或者修改dos窗口的编码。

慕瓜9220888

NODLJJPCVZTDDRUQQJRVNWGFVURFTRGRNGWPDUAPXHAZTBIHFKKJSPLYQMBADDGWKJXXNXMCYZOWEUXTMLCYXCMHBCYCKSGIENARLJLJTCIDGNIQIBLUEYLAFZOOXKKYDLTCCOIOMSBTCSRIBVDVQJCWISTBJYYUWMJNOTRJIIOFWESRHWJDARQDMPJPUVGWRTFIIYULKSQMZPIMJHTBBUNWSWEJHCCOICZEGUUNJGXECBQIYLEJDCQYBFIIUEDBJZICSWNOMOUTTKVJLKBYOREMDMLROOJDOGTIEXKLRVNSEVPCCSRQVDLSBNDFMRWOHFEHLSXFKTJOJANMUISBHAZAFCANJFPNNJBPSSZTMMHMUDGZWXLGOCFLHSZAVXLIHABIMBZOXGZCVSVZEGMZJJQFNSLBXDFWBPYCMVBJNVQZSREUCGVTCFUEDQRMCHKKJWEVUSHTJWGNACASYIHESAWBHAEKEBYDBBYFVODUZHWPFBBOCNCRFEXHZZRKCYVXEKLQLZJLVGJQYTTJFCYUSWOXDWVYWXTLWJDGXDUJNWVVMZYIUSEXQGGFNWKJIFEYVWBZRZSRBGDVKCIXAKHLAPHQTPSSIOSTSRUEWTYJVRKKNWXMHICGZMVFCNMCLBEZQODIXNGGSWUFRGGMHNOJOGFVOXUVTIDDGZSCWFDBHYSBSTYFUGWZVZGUDYXHJGHRYGERNAQGDSHPVUEHHEGFNDSISCQYXNNPZCBPTYHATWPXPEQMZMGMRFEKYBRVPMWRTBRQWRUFXFUWMFPMTFRWFLRUDNZCNAGMCPXCAISBE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