import org.apache.commons.lang.StringEscapeUtils; String locationInfo = StringEscapeUtils.unescapeJavaScript(locationInfo);