aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to find number of chinese characters?