AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wish StringLen Can get the real length of string

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
poetbox



Joined: 07 Jan 2007
Posts: 50

PostPosted: Tue Apr 22, 2008 8:31 am    Post subject: Wish StringLen Can get the real length of string Reply with quote

Stringlen now can get the real byte,not real length.
In China,Japan ,etc....a character use 2Byte(8bit) not 1byte.There hasn't any environment variable to let user define his own languge,and A_Language can do nothing here.
IF a string contains a character and a number,it's length need to be 2 not 3.Then we can devide the string to 2 parts not 3 parts.
BTW, Hotstrings and Auto-replace cannot be directly used in these contries.This bug has found by me for years,the reason why I did not post it here because I knew many people will occur this and then you will improve it quickly.Today,It still be there.
Wish good news in next version.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Fri Apr 25, 2008 5:37 pm    Post subject: Reply with quote

It is beyond StringLen, it would need AHK to be more or less rewritten to support Unicode, which isn't a small task and is unlikely to happen soon...
(Although it can do some Unicode tasks by calling Windows functions: I was able to show Japanese text in GUI.)
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
poetbox



Joined: 07 Jan 2007
Posts: 50

PostPosted: Sat Apr 26, 2008 6:32 am    Post subject: Reply with quote

PhiLho wrote:
It is beyond StringLen, it would need AHK to be more or less rewritten to support Unicode, which isn't a small task and is unlikely to happen soon...
(Although it can do some Unicode tasks by calling Windows functions: I was able to show Japanese text in GUI.)

Ah,it's unicode.And do you have any successful experience on Hotstrings in Japanese without clipboard help?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group