| View previous topic :: View next topic |
| Author |
Message |
poetbox
Joined: 07 Jan 2007 Posts: 50
|
Posted: Tue Apr 22, 2008 8:31 am Post subject: Wish StringLen Can get the real length of string |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6702 Location: France (near Paris)
|
Posted: Fri Apr 25, 2008 5:37 pm Post subject: |
|
|
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 |
|
 |
poetbox
Joined: 07 Jan 2007 Posts: 50
|
Posted: Sat Apr 26, 2008 6:32 am Post subject: |
|
|
| 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 |
|
 |
|