Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading RSS from c# Pin
Goersch123412-Feb-09 8:24
Goersch123412-Feb-09 8:24 
GeneralRe: Reading RSS from c# Pin
Guffa12-Feb-09 14:40
Guffa12-Feb-09 14:40 
AnswerRe: Reading RSS from c# Pin
emiaj12-Feb-09 8:25
emiaj12-Feb-09 8:25 
GeneralRe: Reading RSS from c# Pin
Goersch123412-Feb-09 8:29
Goersch123412-Feb-09 8:29 
QuestionConvert or Parse Pin
Lodeclaw12-Feb-09 6:43
Lodeclaw12-Feb-09 6:43 
AnswerRe: Convert or Parse Pin
Luc Pattyn12-Feb-09 6:56
sitebuilderLuc Pattyn12-Feb-09 6:56 
AnswerRe: Convert or Parse Pin
akidan12-Feb-09 7:14
akidan12-Feb-09 7:14 
GeneralRe: Convert or Parse Pin
freakyit12-Feb-09 9:18
freakyit12-Feb-09 9:18 
AnswerRe: Convert or Parse Pin
PIEBALDconsult12-Feb-09 12:02
mvePIEBALDconsult12-Feb-09 12:02 
GeneralRe: Convert or Parse Pin
Mycroft Holmes12-Feb-09 14:15
professionalMycroft Holmes12-Feb-09 14:15 
AnswerRe: Convert or Parse Pin
Guffa12-Feb-09 15:06
Guffa12-Feb-09 15:06 
QuestionASP file not being able to to find a class that is in the same namespace. Pin
Steve Holdorf12-Feb-09 6:40
Steve Holdorf12-Feb-09 6:40 
AnswerRe: ASP file not being able to to find a class that is in the same namespace. Pin
Calin Tatar12-Feb-09 11:59
Calin Tatar12-Feb-09 11:59 
Questionpivot table Pin
Dushan12312-Feb-09 6:10
Dushan12312-Feb-09 6:10 
QuestionNeed to restric Base Method on Derive and Access on Other Namespace hierarchy class. Pin
Tarini Singh12-Feb-09 5:54
Tarini Singh12-Feb-09 5:54 
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 

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.