If your form contains characters outside of the ASCII (0-7F) range, the character encoding in your XFDL form must match the BSTR encoding passed by the browser to the object containing the Viewer. The easiest way to ensure that they match is to specify character encoding only in the HTML form. You can place it in a meta tag inside the HTML head tag. For example:
<META http-equiv="Content-Type" content="text/html;
Furthermore, you must also remove the character encoding already in your form. As the Designer automatically adds character encoding, you must open the form in another text editor, such as UltraEdit, Notepad, or TextPad, and delete the encoding.
To strip character encoding from an XFDL form:
- Open the file in a text editor. Do not open it in the Designer.
- Search for the encoding attribute on the XML version tag and delete the attribute and its setting.
- Save the form.
However, under some circumstances you may find that you must include character encoding in your XFDL form. If so, you must still ensure that the form encoding matches the BSTR encoding. Therefore, if you include character encoding in your form, it must always be:
You cannot change the character encoding of the form in the Designer. You must edit it in another text editor, such as UltraEdit or Notepad.
To change your form's character encoding:
- Open the file in a text editor.
Search for the encoding attribute on the XML version tag.
Change the encoding setting to UTF-16LE.
Save the form.
- Do not open it in the Designer.
Parent topic: Embedding a form