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

C#

 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
musefan12-Feb-09 6:00
musefan12-Feb-09 6:00 
GeneralRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
DaveyM6912-Feb-09 6:19
professionalDaveyM6912-Feb-09 6:19 
GeneralRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
Tarini Singh12-Feb-09 23:26
Tarini Singh12-Feb-09 23:26 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
DaveyM6912-Feb-09 6:18
professionalDaveyM6912-Feb-09 6:18 
AnswerRe: Need to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
ABitSmart12-Feb-09 15:34
ABitSmart12-Feb-09 15:34 
Questionproblem with é, à, è Pin
abbd12-Feb-09 5:39
abbd12-Feb-09 5:39 
AnswerRe: problem with é, à, è Pin
musefan12-Feb-09 5:46
musefan12-Feb-09 5:46 
AnswerRe: problem with é, à, è [modified] Pin
Luc Pattyn12-Feb-09 5:47
sitebuilderLuc Pattyn12-Feb-09 5:47 
Hi,

Most probably the MessageBox is not at fault, the way you read your file is.

each text file uses some way to identify characters that are outside the regular ASCII character set
(which is less than 128 chars). You either use a "code page" telling what the byte values [128,255]
represent, or some more elaborate scheme such as UTF8 or Unicode, to get access to a much larger
character set where some or all characters use 2 bytes.

UTF8 and Unicode files start with a special byte sequence to identify them. When no byte sequence
is present, your best guess may be to use the code page that suits your locale; I typically use
new Encoding(1252) yielding a West-European code page.

So when reading a text file, you should apply the right "encoding" and pass that to your
input methods, e.g. File.ReadAllText Method (String, Encoding)

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 8:00 AM

QuestionCan we know the extention of code base 64 digits?? Pin
abbd12-Feb-09 5:21
abbd12-Feb-09 5:21 
AnswerRe: Can we know the extention of code base 64 digits?? Pin
musefan12-Feb-09 5:25
musefan12-Feb-09 5:25 
AnswerRe: Can we know the extention of code base 64 digits?? Pin
Rob Philpott12-Feb-09 5:33
Rob Philpott12-Feb-09 5:33 
GeneralRe: Can we know the extention of code base 64 digits?? Pin
abbd12-Feb-09 5:36
abbd12-Feb-09 5:36 
AnswerRe: Can we know the extention of code base 64 digits?? [modified] Pin
Luc Pattyn12-Feb-09 5:42
sitebuilderLuc Pattyn12-Feb-09 5:42 
Questionrange.InsertAfter() Pin
abbd12-Feb-09 5:02
abbd12-Feb-09 5:02 
QuestionSearching on Sharepoint Document Columns Pin
rkajal12-Feb-09 4:54
rkajal12-Feb-09 4:54 
AnswerRe: Searching on Sharepoint Document Columns Pin
Calin Tatar12-Feb-09 5:36
Calin Tatar12-Feb-09 5:36 
QuestionEvaluateException at Select-Funktion Pin
der.flori12-Feb-09 4:32
der.flori12-Feb-09 4:32 
AnswerRe: EvaluateException at Select-Funktion Pin
musefan12-Feb-09 4:58
musefan12-Feb-09 4:58 
AnswerRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:02
Calin Tatar12-Feb-09 5:02 
GeneralRe: EvaluateException at Select-Funktion Pin
der.flori12-Feb-09 5:06
der.flori12-Feb-09 5:06 
GeneralRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:08
Calin Tatar12-Feb-09 5:08 
AnswerRe: EvaluateException at Select-Funktion Pin
Lodeclaw12-Feb-09 5:04
Lodeclaw12-Feb-09 5:04 
AnswerRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:06
Calin Tatar12-Feb-09 5:06 
GeneralRe: EvaluateException at Select-Funktion Pin
der.flori12-Feb-09 5:12
der.flori12-Feb-09 5:12 
GeneralRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:13
Calin Tatar12-Feb-09 5:13 

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.