Nemcija Posted February 23, 2007 Share Posted February 23, 2007 (edited) Hi there I have got a problem again. ^^ I'm trying to write an encryption with autoit, but if it was ready, i noticed by testing it, that something is not really working. I isolated this function: Func _ChrToDec($_CTD_c) for $_CTD_x = 0 to 255 If Chr($_CTD_x) = $_CTD_c then ConsoleWrite("Checking .."&$_CTD_c&" is "&Chr($_CTD_x)) return $_CTD_x EndIf Next EndFunc It returns the integervalue of a char. But, if it reaches E0 (224) there goes something wrong. Now i want to show you a part of the output of "ConsoleWrite" CODEChecking ..à is À Checking ..á is Á Checking ..è is È Checking ..æ is Æ looks like non case sensitivity After that i noticed the same some times earlier. CODEChecking ..e is E Checking ..s is S Checking ..t is T Someone who can help me here? Nemcija. Edited February 23, 2007 by Nemcija [url=www.vergessene-welt.de][/url] Link to comment Share on other sites More sharing options...
Developers Jos Posted February 23, 2007 Developers Share Posted February 23, 2007 (edited) use == to compare for an exact match in stead of a case insensative match: If Chr($_CTD_x) == $_CTD_c then Edited February 23, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nemcija Posted February 23, 2007 Author Share Posted February 23, 2007 Thank you [url=www.vergessene-welt.de][/url] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now