Jump to content

non case sensitive asci after E0


Nemcija
 Share

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

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...