Click here to Skip to main content
15,926,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Search.asp.cs in C# Pin
haibec10-Jun-07 13:23
haibec10-Jun-07 13:23 
GeneralRe: Search.asp.cs in C# Pin
Christian Graus10-Jun-07 14:36
protectorChristian Graus10-Jun-07 14:36 
QuestionDataGridViewCheckBoxColumn on-click Event Pin
dbetting10-Jun-07 4:52
dbetting10-Jun-07 4:52 
QuestionChange typing language Pin
clint198210-Jun-07 4:50
clint198210-Jun-07 4:50 
AnswerRe: Change typing language Pin
Colin Angus Mackay10-Jun-07 6:02
Colin Angus Mackay10-Jun-07 6:02 
QuestionRe: Change typing language Pin
clint198210-Jun-07 11:59
clint198210-Jun-07 11:59 
AnswerRe: Change typing language Pin
Colin Angus Mackay10-Jun-07 13:19
Colin Angus Mackay10-Jun-07 13:19 
QuestionEncoding in .DBF file. Pin
tg200410-Jun-07 1:59
tg200410-Jun-07 1:59 
Hi.

Just wondering if anyone had any advice.
I am trying to read a text field from a .dbf file, the text field is 'encrypted' by a simple increase in the character code.

ie. 0 becomes m, 1 becomes n, by adding to the (int) value of the character.

I have tried using both an OleDB connection and ODBC connection DataReaders to import the data into a textbox so that the user can see the information before choosing to unscramble back to cleartext.

I have no problem populating the textbox but some characters are not being imported with the same encoding as in the file.

If I open the .DBF in a hex editor then I get :

79 77 77 78 80 7D 77 7F 77 7D 79 79 77 7F 7E

I have added a Diagnostic write to show what is in the text box:

79 77 77 78 C7 7D 77 7F 77 7D 79 79 77 7F 7E

As you can see, the fifth character value (hex) 80 is brought in as (hex) C7.

It seems to do this both when trying the OleDB and ODBC connection types for a DBF file.

Is it possible that I am missing an encoding option in the connection string or in the Data Reader?

Thanks in advance.
Tony.
AnswerRe: Encoding in .DBF file. Pin
Guffa10-Jun-07 4:33
Guffa10-Jun-07 4:33 
GeneralRe: Encoding in .DBF file. Pin
tg200412-Jun-07 7:15
tg200412-Jun-07 7:15 
AnswerRe: Encoding in .DBF file. Pin
Guffa12-Jun-07 8:17
Guffa12-Jun-07 8:17 
QuestionHow to set SelectionFont when it returns null? Pin
rvp717y10-Jun-07 1:55
rvp717y10-Jun-07 1:55 
AnswerRe: How to set SelectionFont when it returns null? Pin
Luc Pattyn10-Jun-07 2:02
sitebuilderLuc Pattyn10-Jun-07 2:02 
GeneralRe: How to set SelectionFont when it returns null? Pin
rvp717y10-Jun-07 4:06
rvp717y10-Jun-07 4:06 
GeneralRe: How to set SelectionFont when it returns null? Pin
Muammar©10-Jun-07 5:46
Muammar©10-Jun-07 5:46 
Questionstandard toolbar Pin
md_refay10-Jun-07 1:30
md_refay10-Jun-07 1:30 
AnswerRe: standard toolbar Pin
Giorgi Dalakishvili10-Jun-07 1:35
mentorGiorgi Dalakishvili10-Jun-07 1:35 
Questiongeneral variables Pin
md_refay10-Jun-07 1:25
md_refay10-Jun-07 1:25 
AnswerRe: general variables Pin
Giorgi Dalakishvili10-Jun-07 1:30
mentorGiorgi Dalakishvili10-Jun-07 1:30 
AnswerRe: general variables Pin
Muammar©10-Jun-07 5:43
Muammar©10-Jun-07 5:43 
Questioncalculator Pin
md_refay10-Jun-07 1:23
md_refay10-Jun-07 1:23 
AnswerRe: calculator Pin
Giorgi Dalakishvili10-Jun-07 1:28
mentorGiorgi Dalakishvili10-Jun-07 1:28 
AnswerRe: calculator Pin
Gopal.S10-Jun-07 1:36
Gopal.S10-Jun-07 1:36 
AnswerRe: calculator Pin
Muammar©10-Jun-07 5:41
Muammar©10-Jun-07 5:41 
GeneralRe: calculator Pin
sxbluebird11-Jun-07 19:37
sxbluebird11-Jun-07 19:37 

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.