http://bbs.aliyun.com/read/137391.html "\\=\\+\\/v(?:8|9|\\+|\\/)|\\%0acontent\\-(?:id|location|type|transfer\\-encoding)",);$args_arr = array( 'xs...
分类:
数据库 时间:
2014-07-16 18:34:05
阅读次数:
566
这里讲的是Firefly《暗黑世界》碎片合成的流程部分的代码,这个主要是消息解析的部分,好吧上代码,代码路径app/game/gatenodeapp/compound.py。#coding:utf8'''Created on 2013-3-21物品合成@author: lan (www.9miao....
分类:
其他好文 时间:
2014-07-16 18:30:40
阅读次数:
197
#encoding=utf-8import randomfrom copy import copy def directInsertSort(seq): """ 直接插入排序 """ size = len(seq) for i in range(1,size): t...
分类:
编程语言 时间:
2014-07-16 18:11:59
阅读次数:
255
iconv函数库能够完成各种字符集间的转换,是php编程中不可缺少的基础函数库。
用法如下:
$string = "亲爱的朋友欢迎访问胡文芳的博客,希望给您带来一点点的帮助!";
iconv("utf8","gbk",$string)//将字符串string 编码由utf8转变成gbk;
扩展如下:
echo $str= '你好,欢迎访问胡文芳的博客,该博客记录...
分类:
Web程序 时间:
2014-07-15 12:57:26
阅读次数:
268
编码问题一直是个很令人头疼的事,这几天搭了一个Spring MVC+VTL的web框架,发现中文乱码了,这里记录一种解决乱码的方案。 开发环境为eclipse,首先,检查Window->preferences->workplace->Text File Encoding,设置为GBK .vm文件中加...
分类:
编程语言 时间:
2014-07-14 15:50:20
阅读次数:
228
今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveInstanceState:E/AndroidRuntime(12747):Causedby:java.lang.Illegal...
分类:
其他好文 时间:
2014-07-13 23:59:27
阅读次数:
358
FATAL conf.Configuration: error parsing conf file: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
14/07/12 23:51:40 ERROR namenode....
分类:
其他好文 时间:
2014-07-13 18:40:22
阅读次数:
291
配置文件<?phpdefined(‘ACC‘)||exit(‘AccessDenied‘);$cfg=array();$cfg[‘host‘]=‘localhost‘;$cfg[‘user‘]=‘root‘;$cfg[‘pwd‘]=‘111111‘;$cfg[‘db‘]=‘php0620‘;$cfg[‘port‘]=‘3306‘;$cfg[‘charset‘]=‘utf8‘;$cfg[‘updir‘]=‘upload/‘;
分类:
Web程序 时间:
2014-07-13 15:02:40
阅读次数:
245
做个打飞机的游戏,由于版本太新,网上基本没有教教程,我的版本是cocos2d-x 3.1.1的,今天遇到cocos2dx中中文乱码的问题。无奈只好Google百度寻求答案,明白了这个问题的缘由。因为cocos2d-x内部是以utf8处理文本的,而VS直接输入时文本编码为GBK,如果添加L标志,则为Unicode编码。
解决这个问题有三种办法:
将源代码文件保存为ut...
分类:
其他好文 时间:
2014-07-12 23:09:50
阅读次数:
387