gedit3.x版本设置
终端输入:
sudo apt-get install dconf-tools
dconf-editor /*不要加sudo,不然普通用户无权限调用这个配置*/
展开org/gnome/gedit/preferences/encodings
auto-detected的value中加入’GB18030′,加在uft8后面;
show-in-menu的value中加入’GB18030′
现在,您的 gedit 应该能够顺利打开 GB18030 编码的文本文件了。
gedit 3.X版本命令设置: gsettings set org.gnome.gedit.preferences.encodings auto-detected “[‘UTF-8′,’GB18030′,’GB2312′,’GBK’,’BIG5′,’CURRENT’,’UTF-16′]”
若提示没有auto-detected值则用candidate-encodings代替
有些文本是ISO8859,将‘ISO-8859-15‘也加入候选列。
All posts by ht
mp3 linux 乱码
Install 宋体 on ubuntu
cd /usr/share/fonts/truetype
sudo mkdir cnfonts
sudo cp /home/*/*.ttf /usr/share/fonts/truetype/cnfonts/
sudo fc-cache -fv
sudo reboot
Continue reading Install 宋体 on ubuntu
Emotional Meaning of Colors
Have you ever been at a presentation where you could hardly make out what was on the screen because the presenter used colors that made it hard to tell what was text and what was background? Have you ever done this in one of your presentations?
Continue reading Emotional Meaning of Colors
Enable Hibernation in Ubuntu 12.04
Before enabling hibernation, please try to test whether it works correctly by running sudo pm-hibernate
in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override.
Continue reading Enable Hibernation in Ubuntu 12.04
md5 python 2
#coding:utf-8
#python 检测文件MD5值
#python version 2.6
Continue reading md5 python 2
md5 python
#!/usr/bin/env python
#-*-coding:utf8-*-
”’
md5sum in Python
Author: Seven
Date: 2010/09/23
Support: seven.ling7@hotmail.com
”’
Continue reading md5 python
cmwap cmnet mms
使用PHP的imap系列函数处理gmail的邮件(需要PHP支持imap)
IMAP gmail
Incoming Mail (IMAP) Server – requires SSL: | imap.gmail.com Use SSL: Yes Port: 993 |
Outgoing Mail (SMTP) Server – requires TLS: | smtp.gmail.com (use authentication) Use Authentication: Yes Use STARTTLS: Yes (some clients call this SSL) Port: 465 or 587 |
Account Name: | your full email address (including @gmail.com) Google Apps users, please enter username@your_domain.com |
Email Address: | your full Gmail email address (username@gmail.com) Google Apps users, please enter username@your_domain.com |
Password: | your Gmail password |