wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
POSTing from applet to servlet
Bytes displaying for chinese characters
Generate random strings
Letter counter program. having trouble understanding it.
program errors(switch statement)