The following code can solve the data obtained from the form is garbled.

xiaoxiao2021-03-06  18

String Owner = Request.getParameter ("Owner"); // Uploader IF (Owner == NULL) {Owner = "";} Byte B [] = Owner.getbytes ("ISO-8859-1"); Owner = NEW STRING (B);

The most important thing is this Byte B [] = Owner.getbytes ("ISO-8859-1");

From http://community.9cbs.net/expert/topic/3599/3599368.xml?temp=.1656305

转载请注明原文地址:https://www.9cbs.com/read-41698.html

New Post(0)