wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to find number of chinese characters? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to find number of chinese characters?" Watch "How to find number of chinese characters?" New topic
Author

How to find number of chinese characters?

S. Ganapathy
Ranch Hand

Joined: Mar 26, 2003
Posts: 194
Hi All,
I am facing some problem in internationalizing chinese characters.

Both are displaying same output. That means number of bytes and number of characters are same. But each chinese character occupies 2 bytes, so number of characters should be half of number of bytes if all the characters added are chinese only.
Thanks in advance for the reply.
Regards,
Ganapathy, S.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find number of chinese characters?
 
Similar Threads
Generate random strings
POSTing from applet to servlet
Bytes displaying for chinese characters
Letter counter program. having trouble understanding it.
program errors(switch statement)