码迷,mamicode.com
首页 >  
搜索关键字:gbk encoding support    ( 19109个结果)
一个PHP导出XLS的类
//导出XLS文件 public function dataToXls($filename,$fields,$data,$datasum=array()){ header("Content-Type: application/vnd.ms-excel;charset=gbk");...
分类:Web程序   时间:2014-05-26 21:38:31    阅读次数:302
MySQL索引简介
在数据库表中,使用索引可以大大提高查询速度。All storage engines support at least 16 indexes per table and a total index length of at least 256 bytes. Most storage engines h...
分类:数据库   时间:2014-05-26 21:23:17    阅读次数:349
MyEclipse设置和sqlyog中文乱码
sqlyog中文乱码:Eclipse的文本编码与MySQL数据库字符编码不一致导致。修改Eclipse设置,Window->Preferences->General->Workspace,找到Text file encoding,选择Other,修改为UTF-8。MySQL要支持完整的中文字符集,应...
分类:数据库   时间:2014-05-26 16:13:42    阅读次数:327
ubuntu64bits环境下搭建Opencl的环境
此文介绍 ubuntu 平台下配置 AMD/ATI Opencl 环境,我是ubuntu 12.04。主要分为六个步骤:1. Take a look at your hardware to make sure it’s compatible 先安装驱动,http://support.amd.com....
分类:其他好文   时间:2014-05-26 15:51:53    阅读次数:384
HttpWebRequest
HttpWebRequest request; HttpWebResponse response; ASCIIEncoding encoding = new ASCIIEncoding(); request = WebRequest...
分类:Web程序   时间:2014-05-26 15:49:01    阅读次数:234
char * string nsstring 之间的相互转换
std::string转NSString std::string _string("hello");NSString *str= [NSString stringWithCString:_string.c_str() encoding:[NSString defaultCStringEncoding]]; NSString转std::string NSString * ...
分类:其他好文   时间:2014-05-23 02:24:50    阅读次数:201
JS及JQuery对Html内容编码,Html转义
/** JQuery Html Encoding、Decoding * 原理是利用JQuery自带的html()和text()函数可以转义Html字符 * 虚拟一个Div通过赋值和取值来得到想要的Html编码或者解码 */ //Html编码获取Html转义实体 function htmlEncode(value){ return $('').text(value).html(); } //...
分类:Web程序   时间:2014-05-23 01:23:28    阅读次数:499
LeetCode: Wildcard Matching [043]
【题目】 Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover the entire input string (not partial). The functi...
分类:其他好文   时间:2014-05-23 00:17:12    阅读次数:364
hdu 1114 Piggy-Bank -- 完全背包
Piggy-Bank Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound M...
分类:其他好文   时间:2014-05-21 10:17:35    阅读次数:289
NSString去掉空格和换行失败
从谷歌地图接口取回数据包含回车换行符号,由于需要须把空格和换行符去掉,正常来说应该把字符串内的\n替换就可以了,后来试了一下不行。百度了一下,有人说换行应该是\r\n,也有人说需要换成\\n,众说纷纭,全部试过均告失败: NSString *temp = [[NSString alloc]initWithData:xmlData encoding:NSUTF8StringEncoding...
分类:其他好文   时间:2014-05-21 06:54:08    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!