Hi Lee :
<br />
<br />Many thanks for your kindly reply ...
<br />
<br />I am not clearly sure how to check if I have specified the encoding mechanism correctly in form design ... I would like to say in a detail way that I used LC designer to design a PDF form embedded a 2D Barcode and filled in data fields in Adobe reader then print it as a paper form including 2D Barcode ... Faxed this paper form to fax server and put the fax image into a watch folder ( I also created a decode process in workbench ) , I can see the decode output data is OK ( <?xml version="1.0" encoding="utf-8?"?>
and all the UTF-8 Chinese code is OK ) but it will be <?xml version="1.0"?>
and UTF-8 Chinese code not OK if I used web service API to decode 2D Barcode ...
<br />As to this problem , I think it should not be the form design problem ... and possibly is the web service API usages mistake ...
<br />
<br />My .Net program source as :
<br />
<br />using System;
<br />using System.Collections;
<br />using System.ComponentModel;
<br />using System.Data;
<br />using System.IO;
<br />using System.Text;
<br />using BarcodedForms.barcoded;
<br />
<br />namespace BarcodedForms
<br />{
<br /> class Decoder
<br /> {
<br /> public string execute(String path, String user, String password)
<br /> {
<br /> try
<br /> {
<br /> //Create a BarcodedFormsServiceService object and set authentication
<br />values
<br /> BarcodedFormsServiceService barcodedFormsClient = new
<br />BarcodedFormsServiceService();
<br /> barcodedFormsClient.Credentials = new System.Net.NetworkCredential
<br />(user, password);
<br /> //Reference a PDF form
<br /> BLOB inPDFForm = new BLOB();
<br />
<br /> FileStream fsPDF = new FileStream(path, FileMode.Open);
<br /> //Get the length of the file stream
<br /> int lenPDF = (int)fsPDF.Length;
<br /> byte[] bytePDF = new byte[lenPDF];
<br />
<br /> //Populate the byte array with the contents of the FileStream
<br /> fsPDF.Read(bytePDF, 0, lenPDF);
<br /> inPDFForm.binaryData = bytePDF;
<br />
<br /> //Decode form data
<br />
<br /> XML decodedFormData = barcodedFormsClient.decode(inPDFForm,
<br /> true,
<br /> false,
<br /> false,
<br /> false,
<br /> false,
<br /> false,
<br /> false,
<br /> false,
<br /> CharSet.UTF_8);
<br /> if (decodedFormData != null)
<br /> {
<br /> Console.WriteLine("A:"+decodedFormData.ToString());
<br />
<br /> return decodedFormData.document;
<br /> }
<br /> else return null;