码迷,mamicode.com
首页 >  
搜索关键字:iconv    ( 493个结果
VC++互相转码GBK,unicode,utf8
windows平台下微软的库自带了一些api可用于几种编码格式间的互相转码,其实可以用一个iconv开源跨平台的转码库,那个方法更方便且统一。 使用前要引入头文件和命名空间 [cpp] view plain copy print? #include <iostream> #include <stri ...
分类:编程语言   时间:2017-07-28 23:55:38    阅读次数:296
生成excel xls
$filename = ecs_iconv(EC_CHARSET, 'GB2312', $_LANG['guest_statistics']);header("Content-type: application/vnd.ms-excel; charset=utf-8");header("Conten ...
分类:其他好文   时间:2017-07-27 11:58:04    阅读次数:179
cocos2dx中使用iconv转码(win32,iOS,Android)
首先贴下环境:Win7 64, NDK r8e, libiconv-1.14, cygwin 一 Win32环境配置 Cocos2D-X自带有win32上的iconv库。仅仅须要配置一下就可以使用。 1 引入头文件 属性->配置属性->C/C++->附加包括文件夹: $(ProjectDir)..\ ...
分类:移动开发   时间:2017-07-26 09:42:14    阅读次数:226
Tomcat 之 aio的安装步骤
1)安装apr tar zxvf apr-1.5.2.tar.gz cd /root/soft/apr-1.5.2 ./configure --prefix=/usr/local/apr make && make install 2)安装apr-iconv cd ../ tar -zxvf apr- ...
分类:其他好文   时间:2017-07-24 17:37:43    阅读次数:119
PHP 5.6编译安装
yum install openssl openssl-devel libxml2-deve libxml2 bzip2 bzip2-devel curl-devel php-mcrypt libmcrypt libmcrypt-devel readline-devel wget http://mi ...
分类:Web程序   时间:2017-07-21 18:58:43    阅读次数:243
errno获取错误
#include<errno.h>#include<stdlib.h>#include<string.h> errno=0; iconv_tcd=iconv_open("UTF-8","GBK"); char*errMsg=NULL; if(errno!=0) { errMsg=strerror(errno); cout<<errno<<endl; cout<<errMsg<<endl; }
分类:其他好文   时间:2017-07-20 22:32:15    阅读次数:151
字符截取函数
字符截取函数:<?php functionmsubstr($str,$start=0,$length,$charset="utf-8",$suffix=true){ if(function_exists("mb_substr")){ $slice=mb_substr($str,$start,$length,$charset); }elseif(function_exists(‘iconv_substr‘)){ $slice=iconv_substr($str,$start,$length,..
分类:其他好文   时间:2017-07-18 21:02:58    阅读次数:178
微信开发日常翻车
### 在微信项目的过程中踩了无数的坑,数之不尽1.不要全信文档!不要全信文档!不要全信文档!```xml<xml> <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName> <FromUserName><![CDATA[ojpX_jig-gyi3_Q ...
分类:微信   时间:2017-07-17 20:25:13    阅读次数:254
编码问题
var_dump(file_exists(iconv('UTF-8', 'GBK', './中文文件名.txt')));//代码中 路径中存在中文,编码的转换 $fileinfo['name'] = iconv('gbk', 'utf-8', $file);//目录文件名编码问题:展示时,将操作系统... ...
分类:其他好文   时间:2017-07-16 18:24:34    阅读次数:127
Curl之解决中文乱码
利用iconv命令 curl http://www.baidu.com | iconv -f gb2312 -t utf-8 iconv命令可以将一种已知的字符集文件转换成另一种已知的字符集文件。它的作用是在多种国际编码格式之间进行文本内码的转换。 iconv命令的详细语法: iconv [选项.. ...
分类:Web程序   时间:2017-07-16 00:01:03    阅读次数:212
493条   上一页 1 ... 14 15 16 17 18 ... 50 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!