Question about ASP/VBScript strings and MidB values.
Posted on 2006-03-21
I've looked for detailed information regarding the double-byte nature of ASP/VBScript strings but I can't find anything. I have noticed that if you get, say, Mid(s, i, 1) and MidB(s, 2 * i), 1), the values are different. The MidB values seems to be 0 in most ASCII strings, but is sometimes the same as the Mid value in strings with extended characters in, and is sometimes something different (often a more exact value) in other extended strings (like hebrew ones).
Can anyone explain what exactly in in there?