首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
delphi7 TStringStream不能添加字符集
2024-09-04
解决Delphi7的自带的UTF-8编码转换函数BUG
Delphi7及其以下版本的 VCL 只支持 Ansi, 所以... WideString 与 UTF8String (定义与 AnsiString 相同) 并没有办法正确的在 VCL 中显示 Delphi7自带的utf-8转换函数遇到其无法识别的字符串就返回空. 用以下转换函数可以解决这个bug unit util_utf8; interface uses Windows; type UTF8String = AnsiString; function AnsiToWide(const S: A
fpdf中文乱码,添加字符集
中文乱码 引入Olivier的chinese.php(点击下载) 支持中文,其中有Big5,GB两种 使用方法也很简单 $pdf->AddBig5Font(); $pdf->SetFont('Big5','',20) 或 $pdf->AddGBFont(); $pdf->SetFont('GB','',20); PS:如果使用YII框架,可能会出现获取不到GB_widths的情况,将$GB_widths放入函数体内即可 添加字符集 自带的字体肯定满足不了需求,怎么自定义呢: 1.字
RestTemplate踩坑 之 ContentType 自动添加字符集
写在前边 最近在写 OAuth2 对接的代码,由于授权服务器(竹云BambooCloud IAM)部署在甲方内网,所以想着自己 Mock 一下授权方的返回体,验证一下我的代码.我这才踩到了坑-- 故事背景 选择的 Mock 框架是 国产开源的 Moco(https://github.com/dreamhead/moco),先下载moco-runner-1.3.0-standalone.jar 再根据 Moco的官方文档(https://github.com/dreamhead/moco/blob
添加字体与字符集locale支持(基于busybox文件系统)
添加字体与字符集(基于busybox文件系统) 2011-10-11 14:07:32 分类: LINUX 1.添加字体 下面以文泉驿为例 $ mkdir -p rootfs/usr/share/fonts/wqy //在busybox 文件系统里创建目录存放wqy 字体 $ cp /usr/share/fonts/misc/wenquanyi* rootfs/usr/share/fonts/wqy //复制pc机系统里的字体到busybox 文件系统 $ cp /etc/
CentOS7.5修改字符集
乱码产生的原因: 计算机中储存的信息都是用二进制数表示的:而我们在屏幕上看到的英文.汉字等字符是二进制数转换之后的结果.通俗的说,按照何种规则将字符存储在计算机中,如'a'用什么表示,称为"编码":反之,将存储在计算机中的二进制数解析显示出来,称为"解码",如同密码学中的加密和解密.在解码过程中,如果使用了错误的解码规则,则导致'a'解析成'b'或者乱码. 字符集(Charset):是一个系统支持的所有抽象字符的集合.字符是各种文字和符号的总称,包括各国家文字.标点
SQL*LOADER错误总结
在使用SQL*LOADER装载数据时,由于平面文件的多样化和数据格式问题总会遇到形形色色的一些小问题,下面是工作中累积.整理记录的遇到的一些形形色色错误.希望能对大家有些用处.(今天突然看到自己以前整理的这些资料,于是稍稍整理.归纳成这篇博客,后面如果碰到其他案例,会陆陆续续补充在此篇文章.) ERROR 1:SQL*LOADER装载数据成功,但是发现某些字段的中文为乱码,这个是因为编码缘故造成乱码.可在控制文件中添加字符集编码参数解决问题, 例如:CHARACTERSET 'ZHS16GBK'
CentOS 7 安装 MySQL
转自:http://www.centoscn.com/mysql/2016/0315/6844.html 环境 CentOS 7.1 (64-bit system) MySQL 5.6.24 CentOS 安装 参考:http://www.waylau.com/centos-7-installation-and-configuration/ 依赖 MySQL 依赖 libaio,所以先要安装 libaio yum search libaio # 检索相关信息 yum install libaio
我的日常工具——gdb篇
我的日常工具——gdb篇 03 Apr 2014 1.gdb的原理 熟悉linux的同学面试官会问你用过gdb么?那好用过,知道gdb是怎么工作的么?然后直接傻眼... gdb是怎么接管一个进程?并且能获取这个进程的变量.堆栈.寄存器.内存映像等信息的呢?还可以打断点执行?这些都是gdb一些基本的功能. 很简单,ptrace,好来看看manual上这个系统调用的定义. #include <sys/ptrace.h> long ptrace(enum __ptrace_request reque
sublime2开发Python的编码问题
在sublime2文本编辑器直接开发python程序会出现错误 Traceback (most recent call last): File ".\sublime_plugin.py", line 337, in run_ File ".\exec.py", line 154, in run File ".\exec.py", line 45, in __init__ UnicodeDecodeError: 'ascii' codec ca
gdb篇
转自:http://www.cnblogs.com/ypchenry/p/3668572.html 1.gdb的原理 熟悉linux的同学面试官会问你用过gdb么?那好用过,知道gdb是怎么工作的么?然后直接傻眼... gdb是怎么接管一个进程?并且能获取这个进程的变量.堆栈.寄存器.内存映像等信息的呢?还可以打断点执行?这些都是gdb一些基本的功能. 很简单,ptrace,好来看看manual上这个系统调用的定义. #include <sys/ptrace.h> long ptrace(en
centos7安装mysql(yum)
centos7安装mysql(yum) ----安装环境----依赖安装----检查mysql是否已安装----安装----验证是否添加成功----选择要启用的mysql版本----通过Yum安装mysql----启动和关闭 MySQL Server----防火墙设置----mysql安全设置----远程访问设置----更改数据存放目录----开机自起----设置字符集----其他常用配置配置----备份还原 安装环境 centos7MySQL 5.6.24安装时要先禁用SELinux,再安装M
深入了解mysql数据传输编码原理
一.基本概念(这里引用http://www.laruence.com/2008/01/05/12.html) 1. 给定一系列字符,对每个字符赋予一个数值,用数值来代表对应的字符,这一数值就是字符的编码(Encoding).例如,我们给字符'A'赋予数值0,给字符'B'赋予数值1,则0就是字符'A'的编码: 2. 给定一系列字符并赋予对应的编码后,所有这些字符和编码对组成的集合就是字符集(Character Set).例如,给定字符列表为{'A','B'}时,{'A'=>0, 'B'=>1}就
MySql 中文乱码解决办法
mysql存入的中文数据乱码,可能有这两个原因 原因一 : 数据源配置和mysql字符集编码不符,或数据源配置没有设置字符集 解决方案:在数据源配置添加字符集 useUnicode=true&characterEncoding=utf-8 原因二: 在接受数据的时候已经乱码 解决方案: 1,在接受数据的时候通过代码进行转码 HttpServletRequest request=ServletActionContext.getRequest(); request.setCharacterEncod
SSH三大框架整合步骤
Struts2:需要整合的第一个框架: 1.创建一个动态web项目 2.导入struts2必须的jar 放到 lib目录下 ,再 build path 添加web工程中 3.配置struts2的核心配置文件:struts.xml 4.在web.xml文件中添加struts2的核心过滤器 5.添加测试页面 6.导入tomcat jar包 对j2ee的支持 Spring框架的整合: 1.在struts2框架的基础上,进行spring框架的整合 添加对spring-web,struts-spring-
Oracle12c_安装2——安装篇
安装分为图形安装,静默安装.推荐图形安装,出错率小,简洁明了. 1.安装vnc_server yum -y install vnc *vnc-server* 2.修改VNCServer主配置文件 复制最后两行并去掉行首注释符,然后修改为 #vim /etc/sysconfig/vncservers VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 1024x768" 3.设置VNCServer远程连接密码 #vncs
CentOS7下安装MySQL并配置远程连接
一.CentOS7下安装MySQL数据库 CentOS7默认的安装包里面已经没有 MySQL-Server安装包了,远程镜像中也没有了. 默认的是MariaDB (MySQL的一个分支,开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险 参照百度.开发基本相似). 参考文章:CentOS7 安装MySQL http://www.centoscn.com/mysql/2016/0315/6844.html 这里主要是安装MyS
linux中修改字符编码
一. ubuntu修改字符编码 1. 添加字符编码,例如zh_CN.UTF-8,有两种方式 方法1:locale-gen zh_CN.UTF-8 #locale-gen命令只在ubuntu中才有 方法2:在/var/lib/locales/supported.d/local中添加字符集zh_CN.UTF-8,保存后dpkg-reconfigure locales,然后重启电脑 2. 修改字符编码,只需修改文件 /etc/default/locale 例子1:解决date命令时间格式显示错误的
kettle mysql 乱码
在数据库连接上添加字符集编码参数characterEncoding, 指定UTF8或GBK
.Net core2.0+Mysql5.7部署到CentOS7.5完整实践经验
本文为本人最近学习将.Net Core部署到Linux的一些经验总结,也提供点也和我一样对Linux接触不多的.Net Core开发者. 一.部署用到的环境和工具 1.Linux采用最新的CentOS7.5版本,开发使用VS2017搭配的.Net Core 为2.0的SDK版本号2.1.202(可到微软官方下载:https://dotnet.microsoft.com/download/dotnet-core/2.0) 2.数据库为Mysql 5.7版本,同CentOS系统一样部署在同一个腾讯云
ORACLE 12c 配置PL/SQL 并登录
一.安装12c简易客户端 下载:instantclient-basic-nt-12.2.0.1.0.zip 下载并解压到本地目录D:\app\instantclient_12_2 创建tns连接文件:先创建目录D:\app\instantclient_12_2\NETWORK\ADMIN tnsnames.ora的内容如下 ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = )) (CONNECT_DATA = (SERVICE_NA
【CentOS7】CentOS 7 安装 MySQL
转自:http://www.centoscn.com/mysql/2016/0315/6844.html 环境 CentOS 7.1 (64-bit system) MySQL 5.6.24 CentOS 安装 参考:http://www.waylau.com/centos-7-installation-and-configuration/ 依赖 MySQL 依赖 libaio,所以先要安装 libaio yum search libaio # 检索相关信息 yum install libaio
热门专题
python获取当前文件夹下的文件名
MySQL int 显示宽度
python如何调用namp
js 键盘触发事件 大小写
linux提权之后能干什么
R语言 对某一列进行归一化
Android Studio menu 颜色
c# wpf 取得窗体的图标
eclipse pom.xml第一行报错
eclipse找不到jsp文件
cpu cache实现
jakarta 自定义标签
Gstreamer动态控制参数
cpp中abort()函数的用法
elasticsearch删除表
windows 下golang grpc例子
python编程中要注意什么
vmware虚拟机 centos7如何挂载u盘
地球自转公转模拟3D网站
html table居中