支付宝开发_请求参数乱码

//卖家支付宝帐户
		String seller_email = new String(request.getParameter("WIDseller_email").getBytes("ISO-8859-1"),"UTF-8");
		System.out.println("===>  \nWIDseller_email    "+  seller_email+"   \n  <  ==   ");
		//必填

		//商户订单号
		String out_trade_no = new String(request.getParameter("WIDout_trade_no").getBytes("ISO-8859-1"),"UTF-8");
		//商户网站订单系统中唯一订单号,必填
		System.out.println(" ==  >   \n  WIDout_trade_no    "+  out_trade_no+"  \n    <  ==  ");
		//订单名称
		String subject = new String(request.getParameter("WIDsubject").getBytes("ISO-8859-1"),"UTF-8");
		//必填
		System.out.println(" ==  >   \n  WIDsubject    "+  subject+"  \n    <  ==  ");
		//付款金额
		String total_fee = new String(request.getParameter("WIDtotal_fee").getBytes("ISO-8859-1"),"UTF-8");
		System.out.println(" ==  >   \n  total_fee    "+  total_fee+"  \n    <  ==  ");
		//必填
		//订单描述
		String body = new String(request.getParameter("WIDbody").getBytes("ISO-8859-1"),"UTF-8");
		System.out.println(" ==  >   \n  WIDbody    "+  body+"  \n    <  ==  ");
		//商品展示地址
		String show_url = new String(request.getParameter("WIDshow_url").getBytes("ISO-8859-1"),"UTF-8");
		//需以http://开头的完整路径,例如:http://www.xxx.com/myorder.html

 


 

//卖家支付宝帐户
		String seller_email = new String(request.getParameter("WIDseller_email").getBytes("UTF-8"),"UTF-8");
		System.out.println("===>  \nWIDseller_email    "+  seller_email+"   \n  <  ==   ");
		//必填

		//商户订单号
		String out_trade_no = new String(request.getParameter("WIDout_trade_no").getBytes("UTF-8"),"UTF-8");
		//商户网站订单系统中唯一订单号,必填
		System.out.println(" ==  >   \n  WIDout_trade_no    "+  out_trade_no+"  \n    <  ==  ");
		//订单名称
		String subject = new String(request.getParameter("WIDsubject").getBytes("UTF-8"),"UTF-8");
		//必填
		System.out.println(" ==  >   \n  WIDsubject    "+  subject+"  \n    <  ==  ");
		//付款金额
		String total_fee = new String(request.getParameter("WIDtotal_fee").getBytes("UTF-8"),"UTF-8");
		System.out.println(" ==  >   \n  total_fee    "+  total_fee+"  \n    <  ==  ");
		//必填
		//订单描述
		String body = new String(request.getParameter("WIDbody").getBytes("UTF-8"),"UTF-8");
		System.out.println(" ==  >   \n  WIDbody    "+  body+"  \n    <  ==  ");
		//商品展示地址
		String show_url = new String(request.getParameter("WIDshow_url").getBytes("UTF-8"),"UTF-8");
		//需以http://开头的完整路径,例如:http://www.xxx.com/myorder.html

 

 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值