Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing data from WORD to a Web Page Pin
K edar V18-Oct-06 20:11
K edar V18-Oct-06 20:11 
QuestionTEXTBOX HELP!!! Pin
dgap8-Nov-05 8:07
dgap8-Nov-05 8:07 
AnswerRe: TEXTBOX HELP!!! (REDO) Pin
dgap8-Nov-05 8:09
dgap8-Nov-05 8:09 
GeneralRe: TEXTBOX HELP!!! (REDO) Pin
Susan Hernandez9-Nov-05 14:52
Susan Hernandez9-Nov-05 14:52 
QuestionWork with ASCII code... Pin
ventomito8-Nov-05 8:04
ventomito8-Nov-05 8:04 
AnswerRe: Work with ASCII code... Pin
Dan Neely8-Nov-05 8:36
Dan Neely8-Nov-05 8:36 
GeneralRe: Work with ASCII code... Pin
ventomito8-Nov-05 9:21
ventomito8-Nov-05 9:21 
GeneralRe: Work with ASCII code... Pin
lmoelleb8-Nov-05 21:44
lmoelleb8-Nov-05 21:44 
Bascially a sequence of bytes only makes sense as a text file in connection with a code page (and encoding).
The code page define which character is at which integer position, while the encoding determines how the number is stored in the byte stream. Rememeber that it was only back in the dark ages people thought 256 charactes where enough, so you need a way to store for example character 7625 (what it is I do not know - that depends on the code page).

You mention you use the ASCII table. As correctly pointed out, the ASCII table only defines characters in the range 0-127. So if you have anything in the 128-255 range, it is certain you are not loading ASCII, but something else.
As the .NET framework obviously use Unicode internally (stored in memory with a UTF-16 encoding) it will need to know how to map the byte stream into characters. This is done with an Encoding (see System.Text.Encoding). So with "ISO" in this case is ment you need to know the encoding so you can specify it to the loader.
You can try using the Default encoding - it is the dafault ANSI encoding on the system so it is what outdated programs would use when processing text. While no modern program should touch ANSI encoding with the water from a remote controled fire hose - except when loading outdated dataformats - it is still commonly used, mainly due to ignorance from developers. The ANSI code page can be changed from the control panel, effectively changing the content of all you text files (start to see why no sane person would use it)?

If ANSI does not load, you can try UTF-8 - and if that won't work either you have to find a way of identifying the code page (to use as a parameter in a call to GetEncoding)... You can try loading the file in Word, it tend to give a fairly good guess.


QuestionDetecting a scroll bar being enabled in a listview Pin
Dan Neely8-Nov-05 5:51
Dan Neely8-Nov-05 5:51 
QuestionHelp me with TABCONTROL Pin
kyeran8-Nov-05 5:42
kyeran8-Nov-05 5:42 
AnswerRe: Help me with TABCONTROL Pin
g00fyman8-Nov-05 13:15
g00fyman8-Nov-05 13:15 
GeneralRe: Help me with TABCONTROL Pin
kyeran9-Nov-05 1:46
kyeran9-Nov-05 1:46 
GeneralRe: Help me with TABCONTROL Pin
g00fyman9-Nov-05 2:20
g00fyman9-Nov-05 2:20 
Questionclosing event on mdi form c# Pin
fady_sayegh8-Nov-05 4:34
fady_sayegh8-Nov-05 4:34 
AnswerRe: closing event on mdi form c# Pin
MoustafaS8-Nov-05 13:32
MoustafaS8-Nov-05 13:32 
Questionembedded clr - calling static methods Pin
dirkhelmet!@yahoo.com8-Nov-05 3:42
dirkhelmet!@yahoo.com8-Nov-05 3:42 
AnswerRe: embedded clr - calling static methods Pin
Andy Moore8-Nov-05 5:25
Andy Moore8-Nov-05 5:25 
GeneralRe: embedded clr - calling static methods Pin
Judah Gabriel Himango8-Nov-05 5:54
sponsorJudah Gabriel Himango8-Nov-05 5:54 
Questionedabout the Tapi3 by devang_binson Pin
sharapova8-Nov-05 3:36
sharapova8-Nov-05 3:36 
QuestionBitmap - show a rectangle area only Pin
Seraphin8-Nov-05 3:21
Seraphin8-Nov-05 3:21 
AnswerRe: Bitmap - show a rectangle area only Pin
J4amieC8-Nov-05 3:55
J4amieC8-Nov-05 3:55 
GeneralRe: Also, this doesn't work Pin
Seraphin8-Nov-05 4:09
Seraphin8-Nov-05 4:09 
GeneralRe: Also, this doesn't work Pin
J4amieC8-Nov-05 4:43
J4amieC8-Nov-05 4:43 
GeneralRe: Also, this doesn't work Pin
Seraphin8-Nov-05 5:05
Seraphin8-Nov-05 5:05 
GeneralRe: Also, this doesn't work Pin
[Marc]8-Nov-05 8:54
[Marc]8-Nov-05 8:54 

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.