Sign in to follow this  
Followers 0
Nemcija

non case sensitive asci after E0

3 posts in this topic

#1 ·  Posted (edited)

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
        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"

CODE
Checking ..à is À

Checking ..á is Á

Checking ..è is È

Checking ..æ is Æ

looks like non case sensitivity

After that i noticed the same some times earlier.

CODE
Checking ..e is E

Checking ..s is S

Checking ..t is T

Someone who can help me here?

Nemcija.

Edited by Nemcija

[url=www.vergessene-welt.de][/url]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

If Chr($_CTD_x) == $_CTD_c then

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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:


[url=www.vergessene-welt.de][/url]

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  
Followers 0