Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:16
mvePete O'Hanlon3-May-10 11:16 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:26
sitebuilderLuc Pattyn3-May-10 11:26 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:23
mvePete O'Hanlon3-May-10 11:23 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:27
sitebuilderLuc Pattyn3-May-10 11:27 
GeneralRe: i wait so much because of loops Pin
karayel_kara4-May-10 3:52
karayel_kara4-May-10 3:52 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn4-May-10 4:18
sitebuilderLuc Pattyn4-May-10 4:18 
QuestionMissing special symbols Pin
Sebastian T Xavier3-May-10 1:29
Sebastian T Xavier3-May-10 1:29 
AnswerRe: Missing special symbols PinPopular
Alan N3-May-10 2:24
Alan N3-May-10 2:24 
The ASCII encoder substitutes a ? when it encounters a character code above 127. What you probably have in the file is an extended ascii character set, the most common of which is represented in Windows by the code page 1252, Single Byte Character Sets (SBCS)[^]. You can get an instance of the encoding with

Encoding coder = Encoding.GetEncoding(1252);


If you are going to write to the file I strongly suggest that you do some round trip tests to check that you have selected the correct encoding.

i.e.
Read the file
Convert to a string using the encoding
Convert the string back to bytes
Write to a new file
Check that the orignal and rewritten file are identical

Alan.
QuestionRemove items from the list box in C# windows application Pin
yadlaprasad3-May-10 0:31
yadlaprasad3-May-10 0:31 
AnswerRe: Remove items from the list box in C# windows application Pin
Abhinav S3-May-10 0:49
Abhinav S3-May-10 0:49 
AnswerRe: Remove items from the list box in C# windows application Pin
nagendrathecoder3-May-10 0:52
nagendrathecoder3-May-10 0:52 
AnswerRe: Remove items from the list box in C# windows application Pin
Abdul Rahman Hamidy3-May-10 0:53
Abdul Rahman Hamidy3-May-10 0:53 
AnswerRe: Remove items from the list box in C# windows application Pin
Henry Minute3-May-10 3:32
Henry Minute3-May-10 3:32 
AnswerRe: Remove items from the list box in C# windows application Pin
PIEBALDconsult3-May-10 4:44
mvePIEBALDconsult3-May-10 4:44 
QuestionHtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 0:10
professional#realJSOP3-May-10 0:10 
AnswerRe: HtmlAgilityPack Weirdness Pin
Ravi Bhavnani3-May-10 2:42
professionalRavi Bhavnani3-May-10 2:42 
AnswerRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 2:47
sitebuilderLuc Pattyn3-May-10 2:47 
AnswerRe: HtmlAgilityPack Weirdness Pin
Pete O'Hanlon3-May-10 2:50
mvePete O'Hanlon3-May-10 2:50 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 5:54
professional#realJSOP3-May-10 5:54 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:09
sitebuilderLuc Pattyn3-May-10 6:09 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 6:46
professional#realJSOP3-May-10 6:46 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:57
sitebuilderLuc Pattyn3-May-10 6:57 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 13:47
professional#realJSOP3-May-10 13:47 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 13:59
sitebuilderLuc Pattyn3-May-10 13:59 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 23:23
professional#realJSOP3-May-10 23:23 

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.