06-13-2008 01:17 PM
#!/bin/sh
PROTOCOL="http"
USERPASS="admin:admin"
HOST="127.0.0.1:8080"
# get
htdump "${PROTOCOL}://${USERPASS}@${HOST}/alfresco/service/eu/tenderworks/formtest?formdata=ékezetesókősségík"
# post
htdump -post="formdata=ékezetesókősségík" "${PROTOCOL}://${USERPASS}@${HOST}/alfresco/service/eu/tenderworks/formtest"
<pre>
ékezetesókősségík
</pre>
<pre>
ékezetesókÅsségÃk
</pre>
06-17-2008 02:20 AM
09-02-2008 05:07 AM
10-09-2008 09:21 AM
10-09-2008 09:44 AM
for each (field in formdata.fields) {
if(field.name == 'parent') {
var parent = field.value;
} else if (field.name == 'updatenoderef') {
var updatenoderef = field.value;
} else if (field.name == 'file' && field.isFile) {
var filename = field.filename;
var content = field.content;
}
}
var contentData = Base64.decode(content);
var newContent = parentNode.childByNamePath(name);
if (newContent == null && parentNode.hasPermission("CreateChildren")) {
newContent = parentNode.createFile(name);
}
newContent.properties.content.write(contentData);
newContent.properties.content.encoding = "UTF-8";
if (args.title != undefined) {
newContent.properties.title = Utf8.decode(args.title);
}
if (args.description != undefined) {
newContent.properties.description = Utf8.decode(args.description);
}
newContent.save();
10-09-2008 11:08 AM
newContent.properties.content.write(contentData);
newContent.properties.content.encoding = "UTF-8";
I just wrote newContent.properties.content.content = contentData
, but it didn't help :x10-10-2008 02:29 AM
db.url=jdbc:mysql://localhost/alfresco?useUnicode=true&characterEncoding=utf-8
10-10-2008 04:28 AM
10-10-2008 04:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.