Function does not return the correct Character
I use the following function to encrypt/decrypt a string
It works fine in my main computer. However, when I run it in my laptop, the Å character gets decrypt as an & symbol. The correct result should be the letter âsâ lower case.
Dim i As Integer
Dim Ecn As String = (ConfigurationSettings.AppSettings("sqlStr"))
Dim Dcn As String
For i = 1 To Len(Ecn)
Dcn = Dcn & Chr(Asc(Mid(Ecn, i, 1)) - 25)
Next i
You help is appreciated
Thank you
Tom
|