用delphi来做一个gbk的码表,代码其实也不长,大家主要掌握了一定的技巧,就能举一反三,生成更多的其它实例了。
| program gengbkcode; {$apptype console} uses sysutils; var i, j: byte; mfile: textfile; begin assignfile(mfile, 'gbkcode.txt'); rewrite(mfile); { gbk字符集范围 分区 高位 低位 ---------------------------------------------- ●gbk/1:gb2312非汉字符号: a1~a9 a1~fe ●gbk/2:gb2312汉字 : b0~f7 a1~fe ●gbk/3:扩充汉字 : 81~a0 40~fe ●gbk/4:扩充汉字 : aa~fe 40~a0 ●gbk/5:扩充非汉字 : a8~a9 40~a0 } for i := $a1 to $a9 do for j := $a1 to $fe do write(mfile, chr(i), chr(j)); for i := $b0 to $f7 do for j := $a1 to $fe do write(mfile, chr(i), chr(j)); for i := $81 to $a0 do for j := $40 to $fe do write(mfile, chr(i), chr(j)); for i := $aa to $fe do for j := $40 to $a0 do write(mfile, chr(i), chr(j)); for i := $a8 to $a9 do for j := $40 to $a0 do write(mfile, chr(i), chr(j)); close(mfile); end. |
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器