#AutoIt3Wrapper_UseAnsi=y msgbox(0, "test", stringlen("中国人")) ;output 6
#AutoIt3Wrapper_UseAnsi=n msgbox(0, "test", stringlen("中国人")) ;output 3
举报
#AutoIt3Wrapper_UseAnsi=n $Str_Field = "嘿嘿haha" $Int_FieldLength = StringLen($Str_Field) $Int_FieldCnCharCount = 0 For $Int_FieldStrIndex = 1 To $Int_FieldLength If Not StringIsASCII(StringMid($Str_Field, $Int_FieldStrIndex, 1)) Then $Int_FieldCnCharCount += 2 Else $Int_FieldCnCharCount += 1 EndIf Next Msgbox(0, "test", $Int_FieldCnCharCount) ; output 8
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-1-13 15:46 , Processed in 0.073934 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.