Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encoding question
Message
De
11/11/2013 04:50:29
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587700
Message ID:
01587717
Vues:
36
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);
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform