Get unicode from Chinese character

neltan
neltan used Ask the Experts™
on
Hi,
  How can I get unicode from Chinese character?

Best Regards,
  neltan
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
do you want to convert Chinese text (file) to Unicode ?

Author

Commented:
No. My Chinese character are stored in PostgreSQL.
Web reporting tools (JasperReport & iReport of sourceforget.net) accept unicode only.

So I would like to change them to unicode for displaying in PDF.
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Commented:
byte[] chineseBytes = ; // read the data as binary stream
String unicodeString = new String(chineseBytes, "ENCODING");
neltan:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Author

Commented:
I've been searching for weeks.
And now know that the encoding is one only part of the problem.

I include programming language, JDBC, database encoding, the encoding of data itself.

I can now sort out a solution.

Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial