在使用文件上传下载类时如何传递表单中的中文内容(急)谢谢(100分)

  • 主题发起人 thwhhelen
  • 开始时间
T

thwhhelen

Unregistered / Unconfirmed
GUEST, unregistred user!
在使用文件上传下载类时如何传递表单中的中文内容,
字段接收后已经进行中文转变, 可还是不行。
String msend=mySmartUpload.getRequest().getParameter("nsend");
String send=new String(msend.
getBytes("ISO8859_1"),"GB2312");
out.print("send:"+send+"<br>");
显示为???
 
try following:
String send=new String(msend.
getBytes("ISO8859_1"));
u can find many discussion on this site,why udo
n't search
first?
this question has been talked about for many times,u waste 100 points.
but how many 100 points have u?
 
这个问题没那么简单, 我知道加那段代码可以转换为中文,可在在上传文件这个组件中好像不好用,
你的代码我用过了,不好使。 我正为这事郁闷呢, 如果能解决我的疑点再多加点分也可以。

 
请问哪里有SmartUpload下载?谢谢
 
to:教父
有Email和100分么?
 
在接收时转化反而出问题,不转化却好使,郁闷摸不着头脑。
 

Similar threads

D
回复
0
查看
826
DelphiTeacher的专栏
D
D
回复
0
查看
798
DelphiTeacher的专栏
D
D
回复
0
查看
874
DelphiTeacher的专栏
D
D
回复
0
查看
713
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部