10-12-2007 11:38 AM
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
The html forms have this type and charset specified also:<form action="${url.serviceContext}/apply/postdoc08/edit?guest=true"
method="post"
enctype="multipart/form-data"
charset="utf-8">
I have a freemarker template applicant.xml.ftl that starts off <?xml version="1.0" encoding="UTF-8"?>
So everything should be utf8 right? Indeed if i edit my source xml document with extended characters, and save as UTF8 in TextEdit or Oxygen.app, then all my html pages render the text just fine. Those freemarker templates are xhtml, utf-8, and are loading the xml file thusly:<#assign dom=document.xmlNodeModel>
So that all works, but the problems arises when submitting the html form. The POST is received by a .js file, which applies the template and saves the result out to the repository. Here is where i think the character encoding is getting lost:var tScriptSpace = companyhome.childByNamePath( gPathToScriptSpace );
var tXMLTemplateNode = tScriptSpace.childByNamePath( gXMLTemplate );
var tArgs = formFieldsToArgsArray();
var tNewApplicantXMLStr = tApplicantXMLNode.processTemplate( tXMLTemplateNode, tArgs);
tApplicantXMLNode.content = tNewApplicantXMLStr;
10-30-2007 01:36 PM
10-30-2007 07:29 PM
11-01-2007 04:59 AM
11-01-2007 06:58 AM
11-09-2007 11:06 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.