저는 Alfresco 컨텐츠 서버에 컨텐츠를 가져 오기 위해 Java 웹 서비스 API를 통해 Java를 사용하고 있습니다. 내용의 NamedValue 속성은 UTF-8 (키릴 문자) 문자열로 설정해야합니다.Java, Alfresco 웹 서비스 API 및 유니 코드 NamedValues
이NamedValue[] namedValueProperties = new NamedValue[2];
namedValueProperties[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
namedValueProperties[1] = Utils.createNamedValue("{my.custom.model}myProperty", cyrillicString);
CMLCreate create = new CMLCreate("1", parentReference, null, null, null, documentType, namedValueProperties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] results = null;
try {
results = WebServiceFactory.getRepositoryService().update(cml);
} catch (...)
Here comes the "org.xml.sax.SAXParseException"
}
사람이이 문제를 해결하는 방법을 알고 있나요 :
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the element content of the document.
코드는 다음과 같은 : 나는 SAX 파서 예외가 계속?