• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find number of chinese characters?  RSS feed

 
S. Ganapathy
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!