Click here to Skip to main content
15,911,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading multiple records from a database Pin
ferronrsmith6-Feb-09 14:19
ferronrsmith6-Feb-09 14:19 
GeneralRe: Reading multiple records from a database Pin
Christian Graus6-Feb-09 16:31
protectorChristian Graus6-Feb-09 16:31 
GeneralRe: Reading multiple records from a database Pin
ferronrsmith6-Feb-09 16:48
ferronrsmith6-Feb-09 16:48 
GeneralRe: Reading multiple records from a database Pin
Christian Graus6-Feb-09 18:16
protectorChristian Graus6-Feb-09 18:16 
GeneralRe: Reading multiple records from a database Pin
ferronrsmith6-Feb-09 20:22
ferronrsmith6-Feb-09 20:22 
GeneralRe: Reading multiple records from a database Pin
ferronrsmith7-Feb-09 10:21
ferronrsmith7-Feb-09 10:21 
QuestionProblem Replacing Smart Quotes Pin
Aaron Hartley6-Feb-09 13:33
Aaron Hartley6-Feb-09 13:33 
AnswerRe: Problem Replacing Smart Quotes Pin
Guffa6-Feb-09 14:51
Guffa6-Feb-09 14:51 
When you load the file, the byte codes 0x93 and 0x94 are decoded into the unicode characters with character codes 0x201C and 0x201D.

Does the compiler support unicode in the source code? I would write the characters using escape codes so that I was sure that I got the correct characters:

char[] chars = { '\u201C', '\u201D' };

The replace is probably working just fine, but you are throwing away the result. The Replace method returns the result, and you have to assign it to something, like assigning it to the string variable where you had the input:

data = data.Replace(c, quote);

Despite everything, the person most likely to be fooling you next is yourself.

QuestionC# Registry Change Event Pin
Michael Fritzius6-Feb-09 12:07
professionalMichael Fritzius6-Feb-09 12:07 
AnswerRe: C# Registry Change Event Pin
Christian Graus6-Feb-09 12:42
protectorChristian Graus6-Feb-09 12:42 
AnswerRe: C# Registry Change Event Pin
cmk6-Feb-09 15:54
cmk6-Feb-09 15:54 
AnswerRe: C# Registry Change Event Pin
Giorgi Dalakishvili6-Feb-09 21:00
mentorGiorgi Dalakishvili6-Feb-09 21:00 
Questionhow to work with an opened text file in list box? Pin
pcsience6-Feb-09 9:57
pcsience6-Feb-09 9:57 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn6-Feb-09 10:12
sitebuilderLuc Pattyn6-Feb-09 10:12 
GeneralRe: how to work with an opened text file in list box? Pin
pcsience7-Feb-09 8:25
pcsience7-Feb-09 8:25 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn7-Feb-09 9:09
sitebuilderLuc Pattyn7-Feb-09 9:09 
QuestionRe: how to work with an opened text file in list box? Pin
pcsience8-Feb-09 8:53
pcsience8-Feb-09 8:53 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn8-Feb-09 9:03
sitebuilderLuc Pattyn8-Feb-09 9:03 
GeneralRe: how to work with an opened text file in list box? Pin
pcsience8-Feb-09 9:42
pcsience8-Feb-09 9:42 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn8-Feb-09 10:04
sitebuilderLuc Pattyn8-Feb-09 10:04 
QuestionRe: how to work with an opened text file in list box? Pin
pcsience9-Feb-09 9:08
pcsience9-Feb-09 9:08 
AnswerRe: how to work with an opened text file in list box? Pin
Luc Pattyn9-Feb-09 9:19
sitebuilderLuc Pattyn9-Feb-09 9:19 
QuestionCannot figure out how to get the row I need in a datatable Pin
compninja256-Feb-09 9:49
compninja256-Feb-09 9:49 
AnswerRe: Cannot figure out how to get the row I need in a datatable Pin
Luc Pattyn6-Feb-09 10:03
sitebuilderLuc Pattyn6-Feb-09 10:03 
GeneralRe: Cannot figure out how to get the row I need in a datatable Pin
compninja256-Feb-09 10:19
compninja256-Feb-09 10:19 

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.