日期:2014-05-16  浏览次数:20400 次

瑙e喅JSP涓枃涔辩爜闂<杞?gt;

鏉ヨ嚜锛?a href="http://www.cnblogs.com/chengkai/articles/2171848.html">http://www.cnblogs.com/chengkai/articles/2171848.html

澶у鍦?/span>JSP鐨勫紑鍙戣繃绋嬩腑锛岀粡甯稿嚭鐜颁腑鏂囦贡鐮佺殑闂锛屽彲鑳戒竴鑷冲洶鎵扮潃澶у锛岀幇鎶?/span>JSP寮€鍙戜腑閬囧埌鐨勪腑鏂囦贡鐮佺殑闂鍙婅В鍐冲姙娉曞啓鍑烘潵渚涘ぇ瀹跺弬鑰冦€傞鍏堜簡瑙d竴涓?/span>Java涓枃闂鐨勭敱鏉ワ細

Java鐨勫唴鏍稿拰class鏂囦欢鏄熀浜?/span>unicode鐨勶紝杩欎娇Java绋嬪簭鍏锋湁鑹ソ鐨勮法骞冲彴鎬э紝浣嗕篃甯︽潵浜嗕竴浜涗腑鏂囦贡鐮侀棶棰樼殑楹荤儲銆傚師鍥犱富瑕佹湁涓ゆ柟闈紝Java鍜?/span>JSP鏂囦欢鏈韩缂栬瘧鏃朵骇鐢熺殑涔辩爜闂鍜?/span>Java绋嬪簭浜庡叾浠栧獟浠嬩氦浜掍骇鐢熺殑涔辩爜闂銆傞鍏?/span>Java锛堝寘鎷?/span>JSP锛夋簮鏂囦欢涓緢鍙兘鍖呭惈鏈変腑鏂囷紝鑰?/span>Java鍜?/span>JSP婧愭枃浠剁殑淇濆瓨鏂瑰紡鏄熀浜庡瓧鑺傛祦鐨勶紝濡傛灉Java鍜?/span>JSP缂栬瘧鎴?/span>class鏂囦欢杩囩▼涓紝浣跨敤鐨勭紪鐮佹柟寮忎笌婧愭枃浠剁殑缂栫爜涓嶄竴鑷达紝灏变細鍑虹幇涔辩爜銆傚熀浜庤繖绉嶄贡鐮侊紝寤鸿鍦?/span>Java鏂囦欢涓敖閲忎笉瑕佸啓涓枃锛堟敞閲婇儴鍒嗕笉鍙備笌缂栬瘧锛屽啓涓枃娌″叧绯伙級锛屽鏋滃繀椤诲啓鐨勮瘽锛屽敖閲忔墜鍔ㄥ甫鍙傛暟锛?/span>ecoding GBK鎴栵紞ecoding gb2312鎴栵紞ecoding UTF-8缂栬瘧锛涘浜?/span>JSP锛屽湪鏂囦欢澶村姞涓?/span><%@ page contentType="text/html;charset=GBK"%>鎴?/span>

<%@ page contentType="text/html;charset=gb2312"%>鍩烘湰涓婂氨鑳借В鍐宠繖绫讳贡鐮侀棶棰樸€?/span>

涓嬮潰鏄竴浜涘父瑙佷腑鏂囦贡鐮侀棶棰樼殑瑙e喅鏂规硶锛?/span>涓嬮潰渚嬪瓙涓?/span>ecoding閲囩敤鐨勬槸gb2312锛屼篃鍙涓?/span>ecoding GBK鎴?/span>ecoding UTF-8锛夛細

涓€銆?span style="font-weight: normal; line-height: normal; font-style: normal; font-variant: normal;">JSP椤甸潰涔辩爜