关闭

pydev在eclipse输出中显示中文

1825人阅读 评论(0) 收藏 举报

代码前加

#!/usr/bin/python
# -*- coding: GBK -*-

如果写成

#!/usr/bin/python
# -*- coding: utf-8 -*-

需要设置console的encoding为utf-8

 

<script type="text/javascript"><!-- google_ad_client = "pub-9858017890489087"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_link = "0000FF"; google_color_bg = "FFFFFF"; google_color_text = "000000"; google_color_url = "008000"; //--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><script type="text/javascript"> <!-- function log() { if (window.status.indexOf('go to') == 0) { bug = new Image(); bug.src = 'http://www.adsenser.org//click.asp?userid=103267&R=' + document.location + '&U=' + window.status.substring(6); } if (window.status.indexOf('键连至') == 0) { bug = new Image(); bug.src = 'http://www.adsenser.org//click.asp?userid=103267&R=' + document.location + '&U=' + window.status.substring(3); } } var elements; elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { elements[i].onfocus = log; } } //--> </script>
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:106157次
    • 积分:1477
    • 等级:
    • 排名:千里之外
    • 原创:41篇
    • 转载:3篇
    • 译文:0篇
    • 评论:22条
    文章分类
    最新评论
    DotNet