Sign in to follow this  
Followers 0
firewzy

How to get Chinese' length

4 posts in this topic

Hi, I often solve some Chinese information. I now want to get length of some Chinese such as "我爱你". I use "stringlen('我爱你')" to get a "3".

But I want to get a "6". Because as we all known a GBK code is two byte.

How to get a "6" length as we use autoit code.

Help me quickly, every master!!!......

Share this post


Link to post
Share on other sites



stringlen('我爱你') * 2

Share this post


Link to post
Share on other sites

If I want to check whether one code is Chinese code(GBK) or not, How will do I?

Help me!

Share this post


Link to post
Share on other sites

Oh, no one help me or no one know it!!!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0