i have string str="cooper"s towm"
, want escape double quote inside string(char after r). using str.replaceall("\"","\\\"");
while executing query in solr, still throwing parse exception.
please resolve it. thanks.
you're missing backslash.
str.replaceall("\"","\\"");
should be
str.replaceall("\"","\\\\\"");
Comments
Post a Comment