Printing Sinhala Unicode letters to Epson xp 310

349
February 20, 2017, at 6:20 PM

we are trying to print sinhala unicode from Epson xp 310 using java, but when we try to print sinhala unicode from printer, it print as a question mark "?".

source code

String original = new String("A" + "\u0D85" + "\u0D86" + "\u0D87" + "C");
String roundTrip="";
try {
    byte[] utf8Bytes = original.getBytes("UTF8");
    roundTrip = new String(utf8Bytes, "UTF8");
}
catch (UnsupportedEncodingException e) {
    e.printStackTrace();
}
<script>
function printline()
{
EPrinter.PrintLine(mySpc(1) + "original" + "<%=original%>");
EPrinter.PrintLine(mySpc(1) + "roundTrip" + "<%=roundTrip%>");
}
</script>

It printed this in console correctly. I study the question, that given URL below and could not find the solution. URL

how can I do this?

READ ALSO
Retrieving the released attributes from CAS 5.0.x in Spring Security 3.2.5

Retrieving the released attributes from CAS 5.0.x in Spring Security 3.2.5

I have already figured out how to configure the CAS 50

278
Change only method result and class loader NoSuchMethod

Change only method result and class loader NoSuchMethod

We started with one jar with one class with one method like:

337
How to get a method using java reflection with only partial name as a string of the method?

How to get a method using java reflection with only partial name as a string of the method?

I am trying to invoke a getter of a class, I have only the partial name such as "Name", "age" etcI need to invoke the method from class like getName/retriveName dynamically based on the getters using java Reflection api

356