>Why does C# char = (char)134 return different value character than VFP char(134)?
>
>UPDATE. I understand why but have not found the way to resolve my issue. I need to get a character (in .NET program) (for number 134 or higher) that match exactly the character that VFP gets when using char(134) and such.
>Any suggestion, please let me know. Except I cannot change the VFP code.
If you can get the VFP string as a byte[] (and assuming codepage 1252):
byte[] b = {65, 134, 66}; //Test
string s = Encoding.GetEncoding(1252).GetString(b);