用postgres 的pg_dump可以实现从从postgres数据库中导出数据。[1]只导出所有对象的数据库结构 C:\>pg_dump -f DDDDDD.sql -i -C -E UTF8 -n public -s -U portal -h localhost -W portal ...
分类:
系统相关 时间:
2014-06-28 18:06:55
阅读次数:
312
Connect("localhost", "root", "", "php100")or die("错误");$db->Execute("set names 'UTF8'");$query=$db->execute("select * from `php100`");while($row=$quer...
分类:
数据库 时间:
2014-06-28 13:59:08
阅读次数:
294
//DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Dictionary));//MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json...
分类:
其他好文 时间:
2014-06-23 08:29:28
阅读次数:
269
vim各种编码设置问题
vim中主要有四个编码相关的设置,具体是~/.vimrc中:
以下是我的设置:
set fileencodings=gb18030,utf-8,gb2312,gbk;
set termencoding=gb18030;
set encoding=utf-8;
fileencoding注意这个不是有我们设置的,这是vim探测。
encodin...
分类:
其他好文 时间:
2014-06-22 22:11:19
阅读次数:
245
最近项目使用mysql数据库,以前没接触过。所以找了些资料学习。
目前通过navicat for mysql工具进行mysql数据基本操作。
1.安装navicat for mysql后,建立连接。
2.导入需要创建的sql语句。通过选中库名称右键运行sql文件,加载需要导入的sql语句。
3.增加其中数据,注意增加的字段如果增加提示1306错误,需要修改字段的符号位utf8后即可增加
...
分类:
数据库 时间:
2014-06-22 21:11:36
阅读次数:
210
一、JDK位置
每台机器允许多个jdk版本存在,编译时选择需要使用的jdk即可。MyEclipse—>Properties—>Java—>Installed JRES选择jdk位置
二、编码
①window—>preference—>general—>content type,展开每一项并在Default encoding中输入UTF-8并点击update按钮
②window—>p...
分类:
系统相关 时间:
2014-06-22 16:43:36
阅读次数:
333
在源文件的第一行或第二行添加:(必须在第一行或者第二行)
# -*- coding:utf-8 -*-
详细信息如下面解释:
Python对于decode&encode错误的默认处理方式为strict,也就是直接报错,而java使用replace的方式来处理了,因此java出现中文问题后会打印出很多"??"。此外,Python的默认的encoding是ASCII,而java的默认e...
分类:
编程语言 时间:
2014-06-21 23:25:51
阅读次数:
516
LinearLayout布局:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"androi..
分类:
移动开发 时间:
2014-06-21 19:17:45
阅读次数:
239
Eclipse+pydev2.2+python2.7 中文乱码问题Eclipse的设置window->preferences->general->editors->text editors->spelling->encoding->UTF-8window->preferences->workspac...
分类:
编程语言 时间:
2014-06-20 15:40:06
阅读次数:
220