Hi,
When i am using below code to print chinese character, its printing some garbage value.
Please suggest how to print chinese character using printer.
public void printOutput (ArrayList outContent)
{
try
{
String PrinterPort = "LPT1:"; \\ can use com1,com2 etc
PrintWriter bufWr = new PrintWriter(PrinterPort, "UTF-8");
for (int i=0;i<outContent.size();i++)
{
if (outContent.get(i)!=null )
{
bufWr.write(outContent.get(i) + "");
bufWr.write("\n");
}
}
bufWr.flush();
bufWr.close();
System.out.println("print out completed");
}
catch (Exception e) {
}
}
Regards
Ashish Shukla>