>>It's possible that Sergey's function didn't work with high ascii values either. Can you just test it with high ascii values?
>
>I tested your string with Sergey's function and it works in VFP.
Thanks, Dmitry. So, we can conclude now that C# function is not exact equivalent of VFP code.
If it's not broken, fix it until it is.
My Blog