Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #218 (new task)

Opened 2 years ago

Accents in default value velocity function break form entry

Reported by: djazayeri Assigned to: bmamlin
Priority: minor Milestone: OpenMRS Someday
Component: FormEntry Module Keywords:
Cc: bwolfe, jmiranda, bmamlin Introductory Ticket:

Description

I put an accent in the velocity function in default value for a form field.

$!{patient.getPatientIdentifier("Carte d'Identité").getIdentifier()}

Then (after a download xsn + upload xsn) I try to fill out this form for a patient. I get the error below.

I went back into design schema, removed the accent mark, did a download-xsn and upload-xsn, and now the form works fine.

This is on my windows laptop.

DEBUG - PublishInfoPath.prepareTemplate(247) |2006-09-07 11:40:51,890| Preparing template: C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp\XSN1157622051452\defaults.xml

[Fatal Error] defaults.xml:22:145: Invalid byte 2 of 3-byte UTF-8 sequence.

ERROR - PublishInfoPath.prepareTemplate(276) |2006-09-07 11:40:51,921| Trouble with file: defaults.xml 0.2.0.40 http://localhost:8080/formentry/forms/2.xsn

org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence.

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.openmrs.formentry.PublishInfoPath.prepareTemplate(PublishInfoPath.java:252) at org.openmrs.formentry.PublishInfoPath.publishXSN(PublishInfoPath.java:202) at org.openmrs.formentry.PublishInfoPath.publishXSN(PublishInfoPath.java:97) at org.openmrs.formentry.controller.XsnUploadFormController.onSubmit(XsnUploadFormController.java:52)

...