Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encoding question
Message
From
11/11/2013 04:50:29
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01587700
Message ID:
01587717
Views:
38
This message has been marked as a message which has helped to the initial question of the thread.
>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);
Previous
Reply
Map
View

Click here to load this message in the networking platform