在那之后:
String content = "Some \n multiline \n content";
//actually, content comes from request (tomcat application)
stmnt.setString(2,content);
我在数据库(mysql)中有这个:
“一些多行内容”
我怎样才能避免这种情况?
部分页面来源:
<textarea name="content" rows="5" cols="40"># encoding: UTF-8def put_actions()action = "<a href='view'><img src=
但必须是:
<textarea name="content" rows="5" cols="40"># encoding: UTF-8
def put_actions()
action = "<a href='view'><img src=
PS。只需
statement = Connection.createStatement();
statement.executeUpdate("UPDATE v5_scriptlets SET content = '"+request.getParameter(request)+"'");
一切正常。