Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: WeifenLuos DockManager Question Pin
Dave Kreskowiak29-Jun-04 4:31
mveDave Kreskowiak29-Jun-04 4:31 
Generalrestarting second counter Pin
Jason Ranin28-Jun-04 18:43
Jason Ranin28-Jun-04 18:43 
GeneralRe: restarting second counter Pin
Colin Angus Mackay29-Jun-04 1:46
Colin Angus Mackay29-Jun-04 1:46 
Generalcode with a foxpro database Pin
cmarmr28-Jun-04 18:07
cmarmr28-Jun-04 18:07 
GeneralRe: code with a foxpro database Pin
Heath Stewart29-Jun-04 5:04
protectorHeath Stewart29-Jun-04 5:04 
GeneralRe: code with a foxpro database Pin
cmarmr29-Jun-04 15:19
cmarmr29-Jun-04 15:19 
GeneralRe: code with a foxpro database Pin
cmarmr2-Jul-04 3:29
cmarmr2-Jul-04 3:29 
GeneralRe: code with a foxpro database Pin
Heath Stewart2-Jul-04 3:35
protectorHeath Stewart2-Jul-04 3:35 
cmarmr wrote:
as soon as i past the encrypted text into foxpro it changes the charters and it only seems to change charter from 128 and above can you help me fix this

Now that's handy to know. The text encoding for that field in FoxPro is incorrect. .NET stores and operates on Unicode text natively. What FoxPro has defined for that field is ASCII, which is only characters 127 and below. A codepage (and different regions, countries, and makers have their own) defines the rest of the characters.

What you need to do is change the encoding of that field to UTF8 (like ASCII, but allows for 2-byte characters above 127, making it a good replacement for ASCII on older systems in order to support Unicode as well) or to Unicode (either UCS2 or UCS4).

The other option is to base64-encode the text so that only ASCII characters are used (thus not requiring a change in the FoxPro database). You can do this simply over the byte[] that represents the ciphertext (which is binary anyway - not text!) using Convert.ToBase64String and Convert.FromBase64String. Base64 is the common encoding used for ciphertext (encrypted text) because it's fairly compact and can easily represents arbitrary bytes.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: code with a foxpro database Pin
cmarmr2-Jul-04 14:32
cmarmr2-Jul-04 14:32 
GeneralRe: code with a foxpro database Pin
Heath Stewart2-Jul-04 18:31
protectorHeath Stewart2-Jul-04 18:31 
GeneralCapture Pin
quocbao28-Jun-04 17:48
quocbao28-Jun-04 17:48 
GeneralPulling records within two sets of dates Pin
myNameIsRon28-Jun-04 17:38
myNameIsRon28-Jun-04 17:38 
GeneralRe: Pulling records within two sets of dates Pin
myNameIsRon28-Jun-04 20:08
myNameIsRon28-Jun-04 20:08 
GeneralRe: Capture live video. Pin
Dave Kreskowiak28-Jun-04 16:38
mveDave Kreskowiak28-Jun-04 16:38 
GeneralGetting table names from .mdb Pin
benglish7228-Jun-04 15:40
benglish7228-Jun-04 15:40 
GeneralRe: Getting table names from .mdb Pin
Heath Stewart29-Jun-04 3:34
protectorHeath Stewart29-Jun-04 3:34 
GeneralRe: Getting table names from .mdb Pin
benglish7229-Jun-04 14:30
benglish7229-Jun-04 14:30 
GeneralRe: Getting table names from .mdb Pin
Heath Stewart29-Jun-04 17:17
protectorHeath Stewart29-Jun-04 17:17 
QuestionHow to config **.exe.config by programming Pin
chansion28-Jun-04 15:04
chansion28-Jun-04 15:04 
AnswerRe: How to config **.exe.config by programming Pin
Dave Kreskowiak28-Jun-04 16:35
mveDave Kreskowiak28-Jun-04 16:35 
GeneralRe: How to config **.exe.config by programming Pin
Tom Larsen29-Jun-04 6:05
Tom Larsen29-Jun-04 6:05 
AnswerRe: How to config **.exe.config by programming Pin
Heath Stewart29-Jun-04 4:28
protectorHeath Stewart29-Jun-04 4:28 
GeneralParse Custom XML type into DataSet Pin
james-cxx28-Jun-04 14:58
james-cxx28-Jun-04 14:58 
GeneralRe: Parse Custom XML type into DataSet Pin
Heath Stewart29-Jun-04 4:15
protectorHeath Stewart29-Jun-04 4:15 
GeneralRe: Parse Custom XML type into DataSet Pin
james-cxx30-Jun-04 14:42
james-cxx30-Jun-04 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.