|
Is such that:
I use a form to pass parameters, so that I can display Chinese only after taking out
String myname = request.getParameter ("myname");
myname = new String (myname.getBytes ("ISO8859_1"), "utf-8");
Now I want to define a method for String data. Let's say togbk (String str)
I can do this directly in the future
String myname = togbk (request.getParameter ("myname"));
How do I write class files and where do I put them? |
|