Jump to content
Sign in to follow this  

non case sensitive asci after E0

Recommended Posts


Hi there :whistle:

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

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"

Checking ..à is À

Checking ..á is Á

Checking ..è is È

Checking ..æ is Æ

looks like non case sensitivity

After that i noticed the same some times earlier.

Checking ..e is E

Checking ..s is S

Checking ..t is T

Someone who can help me here?


Edited by Nemcija


Share this post

Link to post
Share on other sites

use == to compare for an exact match in stead of a case insensative match:

If Chr($_CTD_x) == $_CTD_c then

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

Thank you :whistle:


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