sql 不用说了,好解决,和 小魔女 同志说的一样 至于 mySql 和 access 在下则有个比较烂的方法,无论怎样,先解决问题再说。
  <!--- 任意.cfm --->  <!--- 显示GB2312 --->  <cfprocessingdirective pageencoding="GB2312">  <cfcontent type="text/html; charset=GB2312">  <cfset setEncoding("form","GB2312")>  <cfset setEncoding("url","GB2312")>  <!--- 表单 --->  <form action="input.cfm" method="POST">  <input type="Text" name="myInput" >  <input type="submit" name="submit" value="insert into Database">  </form>  <!--- 测试URLEncode --->  <cfset s="中国">  <cfoutput>  #URLEncodedFormat(s,"GB2312")#  #URLDecode(URLEncodedFormat(s,"GB2312"),"GB2312")#  </cfoutput> 
  <!--- input.cfm --->  <!--- 写入数据库 --->  <cfquery name="" datasource="example">  INSERT INTO input (txt)  VALUES ('#URLEncodedFormat(Form.myInput,"GB2312")#')  </cfquery>  <!--- 输出 --->  <cfquery name="testoutput" datasource="example">  SELECT txt  FROM input  </cfquery>  <cfoutput query="testoutput">  #testoutput.txt#  #URLDecode(testoutput.txt,"GB2312")#  </cfoutput>
出处:
 
责任编辑:蓝色 
◎进入论坛网络编程版块参加讨论
	       |