Welcome![Sign In][Sign Up]
Location:
Search - charset.a

Search list

[WEB Codeajax2

Description: DATAGRID异步获取数据 <html> <head> <title>AJAX静态分页</title> <meta http-equiv=\"content-type\" content=\"text/html charset=gb2312\"> <style type=\"text/css\"> <!-- body { text-align:center font:14px Verdana,sans-serif } a:link,a:visited { color:#00f text-decoration:none } a:hover { color:#f00 text-decoration:underline } #main { width:450px background:#f2f2f2 border:1px #999 solid padding:10px text-align:left line-height:150% margin:0 auto } #title { width:100% line-height:30px border-bottom:1px #999 solid display:table } #left { float:left width:50% text-align:left font-size:14px font-weight:bold } #right { float:left width:50% text-align:right } #content { width:100% margin:10px 0 clear:both } #download { width:100% margin:10px 0 line-height:150% }
Platform: | Size: 18087 | Author: feishu | Hits:

[DocumentsjavaNIO

Description: 一系列缓冲区类支撑起了 Java 2 平台标准版的新 I/O(NIO)包。这些类的数据容器形成了其它 NIO 操作(如套接字通道上的非阻塞读取)的基础。在本月的 Merlin 的魔力中,常驻 Java 编程专家 John Zukowski 展示了如何操作那些数据缓冲区来执行如读/写原语这样的任务以及如何使用内存映射文件。在以后的文章里,他将把这里所提到的概念扩展到套接字通道的使用。 Java 2 平台标准版(Java 2 Platform Standard Edition,J2SE)1.4 对 Java 平台的 I/O 处理能力做了大量更改。它不仅用流到流的链接方式继续支持以前 J2SE 发行版的基于流的 I/O 操作,而且 Merlin 还添加了新的功能 — 称之为新 I/O 类(NIO),现在这些类位于 java.nio 包中。 I/O 执行输入和输出操作,将数据从文件或系统控制台等传送至或传送出应用程序。(有关 Java I/O 的其它信息,请参阅 参考资料)。 缓冲区基础 抽象的 Buffer 类是 java.nio 包支持缓冲区的基础。 Buffer的工作方式就象内存中用于读写基本数据类型的 RandomAccessFile 。象 RandomAccessFile一样,使用 Buffer ,所执行的下一个操作(读/写)在当前某个位置发生。执行这两个操作中的任一个都会改变那个位置,所以在写操作之后进行读操作不会读到刚才所写的内容,而会读到刚才所写内容之后的数据。 Buffer 提供了四个指示方法,用于访问线性结构(从最高值到最低值): "capacity() :表明缓冲区的大小 "limit() :告诉您到目前为止已经往缓冲区填了多少字节,或者让您用 :limit(int newLimit) 来改变这个限制 "position() :告诉您当前的位置,以执行下一个读/写操作 "mark() :为了稍后用 reset() 进行重新设置而记住某个位置 缓冲区的基本操作是 get() 和 put() ;然而,这些方法在子类中都是针对每种数据类型的特定方法。为了说明这一情况,让我们研究一个简单示例,该示例演示了从同一个缓冲区读和写一个字符。在清单 1 中, flip() 方法交换限制和位置,然后将位置置为 0,并废弃标记,让您读刚才所写的数据: 清单 1. 读/写示例 import java.nio.*; ... CharBuffer buff = ...; buff.put('A'); buff.flip(); char c = buff.get(); System.out.println("An A: " + c); 现在让我们研究一些具体的 Buffer 子类。 回页首 缓冲区类型 Merlin 具有 7 种特定的 Buffer 类型,每种类型对应着一个基本数据类型(不包括 boolean): "ByteBuffer "CharBuffer "DoubleBuffer "FloatBuffer "IntBuffer "LongBuffer "ShortBuffer 在本文后面,我将讨论第 8 种类型 MappedByteBuffer ,它用于内存映射文件。如果您必须使用的类型不是这些基本类型,则可以先从 ByteBuffer 获得字节类型,然后将其转换成 Object 或其它任何类型。 正如前面所提到的,每个缓冲区包含 get() 和 put() 方法,它们可以提供类型安全的版本。通常,需要重载这些 get() 和 put() 方法。例如,有了 CharBuffer ,可以用 get() 获得下一个字符,用 get(int index) 获得某个特定位置的字符,或者用 get(char[] destination) 获得一串字符。静态方法也可以创建缓冲区,因为不存在构造函数。那么,仍以 CharBuffer为例,用 CharBuffer.wrap(aString) 可以将 String对象转换成 CharBuffer 。为了演示,清单 2 接受第一个命令行参数,将它转换成 CharBuffer ,并显示参数中的每个字符: 清单 2. CharBuffer 演示 import java.nio.*; public class ReadBuff { public static void main(String args[]) { if (args.length != 0) { CharBuffer buff = CharBuffer.wrap(args[0]); for (int i=0, n=buff.length(); i<n; i++) { System.out.println(i + " : " + buff.get()); } } } } 请注意,这里我使用了 get() ,而没有使用 get(index) 。我这样做的原因是,在每次执行 get() 操作之后,位置都会移动,所以不需要手工来声明要检索的位置。 回页首 直接 vs. 间接 既然已经了解了典型的缓冲区,那么让我们研究直接缓冲区与间接缓冲区之间的差别。在创建缓冲区时,可以要求创建直接缓冲区,创建直接缓冲区的成本要比创建间接缓冲区高,但这可以使运行时环境直接在该缓冲区上进行较快的本机 I/O 操作。因为创建直接缓冲区所增加的成本,所以直接缓冲区只用于长生存期的缓冲区,而不用于短生存期、一次性且用完就丢弃的缓冲区。而且,只能在 ByteBuffer 这个级别上创建直接缓冲区,如果希望使用其它类型,则必须将 Buffer 转换成更具体的类型。为了演示,清单 3 中代码的行为与清单 2 的行为一样,但清单 3 使用直接缓冲区: 清单 3. 列出网络接口 import java.nio.*; public class ReadDirectBuff { public static void main(String args[]) { if (args.length != 0) { String arg = args[0]; int size = arg.length(); ByteBuffer byteBuffer = ByteBuffer.allocateDirect(size*2); CharBuffer buff = byteBuffer.asCharBuffer(); buff.put(arg); buff.rewind(); for (int i=0, n=buff.length(); i<n; i++) { System.out.println(i + " : " + buff.get()); } } } } 在上面的代码中,请注意,不能只是将 String 包装在直接 ByteBuffer中。必须首先创建一个缓冲区,先填充它,然后将位置倒回起始点,这样才能从头读。还要记住,字符长度是字节长度的两倍,因此示例中会有 size*2 。 回页首 内存映射文件 第 8 种 Buffer 类型 MappedByteBuffer 只是一种特殊的 ByteBuffer 。 MappedByteBuffer 将文件所在区域直接映射到内存。通常,该区域包含整个文件,但也可以只映射部分文件。所以,必须指定要映射文件的哪部分。而且,与其它 Buffer 对象一样,这里没有构造函数;必须让 java.nio.channels.FileChannel的 map() 方法来获取 MappedByteBuffer 。此外,无需过多涉及通道就可以用 getChannel() 方法从 FileInputStream 或 FileOutputStream获取 FileChannel 。通过从命令行传入文件名来读取文本文件的内容,清单 4 显示了 MappedByteBuffer : 清单 4. 读取内存映射文本文件 import java.io.*; import java.nio.*; import java.nio.channels.*; import java.nio.charset.*; public class ReadFileBuff { public static void main(String args[]) throws IOException { if (args.length != 0) { String filename = args[0]; FileInputStream fis = new FileInputStream(filename); FileChannel channel = fis.getChannel(); int length = (int)channel.size(); MappedByteBuffer byteBuffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, length); Charset charset = Charset.forName("ISO-8859-1"); CharsetDecoder decoder = charset.newDecoder(); CharBuffer charBuffer = decoder.decode(byteBuffer); for (int i=0, n=charBuffer.length(); i<n; i++) { System.out.print(charBuffer.get()); } } } }
Platform: | Size: 5876 | Author: 635868631@qq.com | Hits:

[WEB Codeajax2

Description: DATAGRID异步获取数据 <html> <head> <title>AJAX静态分页</title> <meta http-equiv="content-type" content="text/html charset=gb2312"> <style type="text/css"> <!-- body { text-align:center font:14px Verdana,sans-serif } a:link,a:visited { color:#00f text-decoration:none } a:hover { color:#f00 text-decoration:underline } #main { width:450px background:#f2f2f2 border:1px #999 solid padding:10px text-align:left line-height:150% margin:0 auto } #title { width:100% line-height:30px border-bottom:1px #999 solid display:table } #left { float:left width:50% text-align:left font-size:14px font-weight:bold } #right { float:left width:50% text-align:right } #content { width:100% margin:10px 0 clear:both } #download { width:100% margin:10px 0 line-height:150% }-DataGrid Asynchronous access to data <html> <head> <title> AJAX static page </ title> <meta http-equiv= content-type content= text/html charset=gb2312 > <style type = text/css ><!-- body (text-align: center font: 14px Verdana, sans-serif) a: link, a: visited (color:# 00f text-decoration: none) a: hover (color: 23 ! f00 text-decoration: underline)# main (width: 450px background:# f2f2f2 border: 1px# 999 solid padding: 10px text-align: left line-height: 150 margin: 0 auto)# title ( width: 100 line-height: 30px border-bottom: 1px# 999 solid display: table)# left (float: left width: 50 text-align: left font-size: 14px font-weight: bold) 23 ! right (float: left width: 50 text-align: right)# content (width: 100 margin: 10px 0 clear: both)# download (width: 100 margin: 10px 0 line-height: 150 )
Platform: | Size: 17408 | Author: | Hits:

[Database systemNoObjUpload

Description: 完整功能: 1.自由限制上传文件类型 2.自由设置上传大小限制(单文件大小和总上传大小可自由修改限制) 3.支持两种文件名方式保存---原文件名保存和新文件名(根据时间随机生成)保存 4.提供多种文件保存方式--save.asthis类型、saveAs类型以及经典保存类型 5.自由设置字符编码格式--charset属性 6.强大的容错处理, 提供完整的中文错误提示(需手动显示错误提示) 7.自由提取表单数据 8.随时获取文件的二进制数据(方便用户保存二进制数据到数据库) 。。。。其他的功能就是自由运用本类了。。。。绝对能达到意想不到的效果~-Full-featured: 1. Free limit upload type 2. Freedoms set upload size limit (single file size and total freedom to change upload size limit) 3. To support the two documents were kept--- the original file name preservation and new file name (based on randomly generated time) to preserve 4. to provide a variety of ways save the file- save. asthis type, saveAs types, as well as classic Save as type 5. freedoms set character encoding format- charset attribute 6. powerful fault-tolerant, providing a complete Chinese error message (error prompted the need to manually) 7. free extract form data 8. at any time to obtain the document binary data (user-friendly save the binary data to database). . . . Other of its function is free to use this type of. . . . Absolutely can achieve the unexpected effect ~
Platform: | Size: 351232 | Author: 会果 | Hits:

[DSP programvideo_networking_ip_boot

Description: dm642通过网络接收烧写文件,然后烧写到flash当中,无需flashburn。此工程是从dm642_5a中copy过来的,加上了boot代码,为的是生成hex文件,烧在flash中,可以独立的运行。-dm642 receive through the network programmer, and then the flash programmer, the need for flashburn. This project is a copy from the back of dm642_5a, together with the boot code, for hex files are generated, burning the flash, you can run an independent.
Platform: | Size: 1702912 | Author: skyy | Hits:

[JSPJSPstudent

Description: 第一章JSP简介 例子1(效果如图1.1所示) Example1_1.jsp: < @ page contentType="text/html charset=GB2312" > <HTML> <BODY BGCOLOR=cyan> <FONT Size=1> <P>这是一个简单的JSP页面 < int i, sum=0 for(i=1 i<=100 i++) { sum=sum+i } >-About JSP examples Chapter 1 (results in Figure 1.1 below) Example1_1.jsp: < @ page contentType = " text/html charset = GB2312" > <HTML><BODY BGCOLOR=cyan><P> This is a simple JSP page < int i, sum = 0 for (i = 1 i < = 100 i++) (sum = sum+ i ) >
Platform: | Size: 67584 | Author: 蚂蚁 | Hits:

[2D Graphicyavga

Description: This core is a simple and small VGA controller. * It drives vga monitors with an 800x600 resolution and 72Hz vertical refresh rate (50MHz pixel clock) * It displays chars on the screen (each char is 8x16 pixels) * It has a customizable charset (you can use a simple text editor in order to "visually" customize it) * It can display a color "waveform" * It can display a color grid and "cross cursor" -This core is a simple and small VGA controller. * It drives vga monitors with an 800x600 resolution and 72Hz vertical refresh rate (50MHz pixel clock) * It displays chars on the screen (each char is 8x16 pixels) * It has a customizable charset (you can use a simple text editor in order to "visually" customize it) * It can display a color "waveform" * It can display a color grid and "cross cursor"
Platform: | Size: 44032 | Author: sdroamt | Hits:

[JSP/JavaClassPageTestProject

Description: 压缩包内有项目数据库 文件 一个很好的分页测试功能的小程序源代码 自己也在做这个项目。这里有增、删、该、查加分页。有上一页、下一页、首页、尾页、第几页、还有带数字和点的分页。可以说是非常好的分页代码。想要的朋友自己处下载 < @ page contentType="text/html charset=GB2312" language="java" import="java.sql.*" errorPage="" > < @ page import="java.io.*" > < @ page import="java.util.*" > -Compressed database file within the project a good test function for a small page source code itself is doing the project. There are add, delete, that, plus search page. There Previous, Next, Home, End, the first few pages, there are pages with figures and points. Can be said to be a page code. Want your friends to download the < @ page contentType = " text/html charset = GB2312" language = " java" import = " java.sql .*" errorPage = " " > < @ page import = " java . io .* " > < @ page import =" java.util .* " >
Platform: | Size: 746496 | Author: xiaokui | Hits:

[Windows Developa

Description: 目前一部份手机(包括进口手机及山寨手机)的电话簿备份文件是UTF-8 QUOTED-PRINTABLE 编码的 vcf 文件,格式如下: BEGIN:VCARD VERSION:2.1 N CHARSET=UTF-8 ENCODING=QUOTED-PRINTABLE:=E6=95=96=E5=87=A4=E6=96=8C TEL CELL:13804797868 BDAY:00000000 END:VCARD BEGIN:VCARD VERSION:2.1 N CHARSET=UTF-8 ENCODING=QUOTED-PRINTABLE:=E5=8C=85=E5=87=A4=E8=BF=9E TEL CELL:15234847416 BDAY:00000000 END:VCARD 因此在电脑上不能直接编辑整理,而另一部份手机电话簿的备份文件格式为csv文件,可以在电脑上直接编辑整理,格式如下: Name, Phone Number "敖凤斌1","13804797868" "敖凤斌2","15301537562" "曹占林.同事","13448227541" "曹占林.同学","15945893256" "包凤连","15234847416" "曾庆祝","13548227481" "常柏成","13848267122" "程荣山","13414827491" "陈光辉","13248237111" "冯殿明","15434827126" "付静波","15204837760" "傅志敏","13704798566" "肖丽春","13248217495" "杨晓东","13748277705" "张春梅","13830447560" "郑玉芬","13748277417" "朱友斌","13714827190"-crc32文件完整性检验
Platform: | Size: 386048 | Author: 地基 | Hits:

[AI-NN-PRBBS

Description: 用C语言编写一个BBS发贴机器人bbsrobot.c。编译程序命令如下: gcc bbsrobot.c -o bbsrobot 运行效果就不贴出来的,可能涉及某些网站的安全吧-A post system, with the c language. If GET/POST、Host、User-Agent、Accept、Accept-Language、Accept-Encoding、Accept-Charset…… ,use google to translate.
Platform: | Size: 3072 | Author: zs | Hits:

[JSP/JavacharsetDetect

Description: 文本文件编码检测(charset detect)工具。提供单一api。特别适用于爬虫(spider)检测html编码-Text file encoding detection (charset detect) tools. Provides a single api. Especially for reptiles (spider) html code detection
Platform: | Size: 76800 | Author: li | Hits:

[JSP/JavaXIANXING

Description: 北京现在实施汽车尾号限行,小弟的汽车尾号是 8,每周五不能上路,如果忘记了,周五上路了,一旦被摄像头拍下,要罚 100 元,所以这个小软件的用途就是:点击 FRI(周五),FRI 这一列变成红色,提醒小弟周五不要开车。 阅读下面的源代码,您可以发现,软件是用 html/javascript/css 编写的,没有一行 java/vb/c++/c# 语句,这就是 phonegap 软件的最显著特点。 有朋友可能会问:我想在手机 SD 卡上存储文件,怎么办?由于 javascript 没有这种命令,phonegap 又额外提供了一组 javascipt 扩展命令,包括读写 SD 卡、读写 GPS、读写短信-<!doctype html> <html> <head> <meta charset="utf-8" /> <title>Don t Drive in Red Days</title> <style type="text/css"> body { background:black color:whitesmoke } body, p, span, div, td, a { font:bold 16px Arial } p, span, div, td { text-align:center } td { background:darkgreen border:1px solid black height:40px width:48px } a:link, a:active, a:visited { color:whitesmoke text-decoration:none } a:hover { color:crimson } table { border-collapse:collapse margin:auto } .header { color:crimson font-size:30px white-space:nowrap } </style> <script type="text/javascript"> String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "") } function save(value) { var expiry, count if (navigator.userAgent.indexOf("Chrome") >= 0 || navigator.userAgent.indexOf("Safari") >= 0) { localStorage.c
Platform: | Size: 2048 | Author: 杨剑 | Hits:

[Internet-Network111

Description: 本系统采用PHP+MYSQL开发,所以要想运行本系统,得有PHP+MYSQL环境的支持。 建议版本:PHP5.2以上 MYSQL5.0以上 Apache2.2以上 网站安装步骤: 1、在MYSQL中新建一个数据库 2、将ybcyt.sql文件导到数据库 3、修改config.php数据库连接配置文件 $host:MYSQL数据库主机地址 $user:MYSQL数据库用户名 $passwd:MYSQL数据库密码 $db:数据库名 $on:为1时代表网站开启,为0时代表网站关闭 $web_name:网站标题 $charset:设置连接数据库所用字符编码 4、打开localhost就可以运行本系统 注意: 后台管理初始用户名和密码都是:admin 后台登录地址为:http://你的网站地址/admin/login.php-The system to adopt PHP+MYSQL development, so in order to run this system, have PHP+MYSQL environment. Recommended version: PHP5.2 above Apache2.2 above above MYSQL5.0 site installation steps: in MYSQL to create a new database file will ybcyt.sql guide to the database, modify the config.php database connection configuration file the host: MYSQL database host address $ the user: MYSQL Based database user name $ the passwd: MYSQL Based database password $ db: the database name $ on: 1:00 behalf of site, open, to 0:00 on behalf of Web site shut down $ web_name: Site Title $ the charset: set to connect to the database used character encoding, open the localhost can run this system Note: Manage the initial user name and password are: admin background login address is: http:// Your website address/admin/login.php
Platform: | Size: 1732608 | Author: | Hits:

[ComboBoxMFCCOM_COM

Description: CPP2COM 包含九个子文件夹,其中CHARSET、CHARSET_DLL、DLL_VTBL、CS_NEARCOM和REALCOM五个实例介绍了将一个C++对象改造成COM对象的过程,其余的四个实例是分别是各个对象的使用示范。 MFCCOM 使用MFC开发COM组件的实例。 ATLCOM 使用ATL开发COM组件的实例。 CLWUSECOM COM组件的使用实例,介绍了用MFC或ATL开发的组件的使用方法。-CPP2COM contains nine subfolders, which CHARSET, CHARSET_DLL, DLL_VTBL, CS_NEARCOM and REALCOM describes five instances of a C++ object will be transformed into a process COM objects, and the rest were four instances is a demonstration of each object. MFCCOM developed using examples of MFC COM components. ATLCOM developed using ATL COM component instance. Example CLWUSECOM COM components, introduces the MFC or ATL components developed using the method.
Platform: | Size: 267264 | Author: jeff | Hits:

[Other Riddle gameshtml5Games

Description: 演示地址:http://www.51rgb.com/nbbs/thread-1398-1-1.html 特效说明:一款JS+html5切木头手机游戏源码网页特效,html5手机在线web页面游戏,html5手机游戏源码学习。休闲可以玩一玩儿哦~~请用支持HTML5+CSS3主流浏览器预览效果。(兼容测试:FireFox、Chrome、Safari、Opera等支持HTML5/CSS3浏览器) 使用方法:1、调用JS插件代码: <script type= text/javascript src= standard.js charset= utf-8 ></script> <script type= text/javascript src= stack.js charset= utf-8 ></script> 2、添加HTML代码: 将<! 效果html开始 >......<! 效果html结束 >之间的html和js代码;放在<body></body>之间。-Demo Address: http: //www.51rgb.com/nbbs/thread-1398-1-1.html Effects Description: A cut wood JS+ html5 mobile games source netnew, html5 mobile phone online games web page, html5 mobile game source code to learn. Leisure can play a play ohhh Please support HTML5+ CSS3 mainstream browser preview. (Compatibility test: FireFox, Chrome, Safari, Opera and other support HTML5/CSS3 browser) Usage: 1, calling JS plug-in code: <script type = text/javascript src = standard.js charset = utf-8 > </ script> <script type = text/javascript src = stack.js charset = utf-8 > </ script> 2, add the HTML code: The <!- Begin html effect-> ...... between html and js code < Effect html end!> In <body> </ body> between.
Platform: | Size: 215040 | Author: lucifer | Hits:

[WEB CodeGCMS_mhb_v1.0

Description: 该软件是GCMS的门户版本。 上传所有文件,建Mysql数据库,导入表gcms.sql,打开\_GCMS\Configs\online.inc.php中的 DEFAULT_DB => array( DRIVER => MySql , //数据库驱动 MASTER =>array( HOST => localhost , //数据库主机 USERNAME => 你的数据库用户名 , //数据库用户名 PASSWORD => 你的数据库密码 , //数据库密码 DBNAME => 你的数据库名 , //数据库名 CHARSET => utf8 , //数据库编码 TABLEPREFIX => gcms_ , //数据表前缀 PCONNECT => false, //是否开启数据库长连接 ENGINE => //数据库引擎 ), 按要求填写连接数据库。 online.inc.php保存时要注意,用utf8编码保存 后台登陆地址:域名/index.php?m=Admin&c=Index&a=login 用户名/密码:goodtext.org -The software is GCMS version of the portal. Upload all files, build Mysql , import tables gcms.sql, open \ _GCMS \ Configs \ online.inc.php in DEFAULT_DB => array (                 DRIVER => MySql , // -driven                 MASTER => array (                         HOST => localhost , // host                         USERNAME => Your user name , // username                         PASSWORD => Your password , // password                         DBNAME => your name , // name                         CHARSET => utf8 , // coding                         TABLEPREFIX =>
Platform: | Size: 2414592 | Author: ampudn23 | Hits:

[Linux-Unixmac-centeuro

Description: Simpler 68k and ColdFire parts also need a few other gcc functions.Charset maccenteuro translation tables.
Platform: | Size: 3072 | Author: hongxuerei | Hits:

[Linux-Unixucsdet

Description: Structure representing a charset detector.Opaque structure representing a match that was identified a charset detection operation. -Structure representing a charset detector.Opaque structure representing a match that was identified a charset detection operation.
Platform: | Size: 5120 | Author: fonjeirai | Hits:

[Embeded Linuxfreetype

Description: 在linux的terminal下面执行:./example1 ./simsun.ttc a 就可以显示simsun.ttc字符类型的字体。自己也可以修改。前提是安装了freetype。 安装步骤是: tar xjf freetype-2.4.10.tar.bz2 ./configure make sudo make install 编译执行文件的命令是: gcc -finput-charset=GBK -fexec-charset=UTF-8 -o example1 example1.c -I /usr/local/include/freetype2 -lfreetype -lm ./example1 ./simsun.ttc abc-Under the Linux terminal execution:/example1/simsun TTC can show a simsun. TTC character type fonts.Oneself also can be modified.The premise is installed freetype. Installation steps are: The tar XJF freetype- 2.4.10. Tar..bz2 ./configure The make Sudo make install Compile executable commands are: GCC- finput- charset = GBK- fexec- charset = utf-8- o example1 example1. C- I/usr/local/include/freetype2 lfreetype- lm ./example1./simsun. TTC ABC
Platform: | Size: 16130048 | Author: dennis | Hits:

CodeBus www.codebus.net