Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please need advice.. Pin
Christian Graus2-Aug-05 20:23
protectorChristian Graus2-Aug-05 20:23 
GeneralRe: Please need advice.. Pin
User 16732522-Aug-05 20:41
User 16732522-Aug-05 20:41 
GeneralRe: Please need advice.. Pin
KORCARI2-Aug-05 20:52
KORCARI2-Aug-05 20:52 
GeneralRe: Please need advice.. Pin
V.3-Aug-05 1:13
professionalV.3-Aug-05 1:13 
Generalmouse coordinates in mousehover Pin
Rafferty Uy2-Aug-05 19:36
Rafferty Uy2-Aug-05 19:36 
GeneralRe: mouse coordinates in mousehover Pin
mav.northwind2-Aug-05 19:56
mav.northwind2-Aug-05 19:56 
GeneralRe: mouse coordinates in mousehover Pin
Rafferty Uy2-Aug-05 23:23
Rafferty Uy2-Aug-05 23:23 
GeneralExporting Russian Characters to a CSV File Pin
MSJ_PK2-Aug-05 19:30
MSJ_PK2-Aug-05 19:30 
Hi,

My requirement is to export Russian Data stored in Oracle 9i Database to a CSV file.

When the below code is used to export data the Russian Characters are shown as Junk characters when the CSV file is opened in MSExcel. If the same file is opened in Notepad, the Russian Characters are displayed correctly.

Can someone advice, how to export Russian Characters that can also be displayed correctly when viewed in Excel Sheet.

It will be highly appreciated.

With Regards,

/////////////////////////////////////////////////////////////////////////////
/////////////////////// PROGRAM CODE ////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////

String strFileName = "";
FileStream fs = null;
BufferedStream buff = null;
StreamWriter writer = null;
bool bExported = false;

try
{
SaveFileDialog saveFileDlg = new SaveFileDialog();
saveFileDlg.Filter = "CSV Format|*.csv";
saveFileDlg.Title = "Save File";
saveFileDlg.RestoreDirectory = true ;
saveFileDlg.ShowDialog();

if(saveFileDlg.FileName != "")
{
strFileName = saveFileDlg.FileName;
saveFileDlg.Dispose();
fs = new FileStream
(strFileName,FileMode.OpenOrCreate,FileAccess.ReadWrite);
buff = new BufferedStream(fs);
writer = new StreamWriter(buff);
writer.Write(strWriteData);
writer.Flush();
bExported = true;
writer.Close();
buff.Close();
fs.Close();
}
return bExported;
}
catch(Exception exp)
{
throw exp;
}
finally
{
writer = null;
buff = null;
fs = null;
}

GeneralRe: Exporting Russian Characters to a CSV File Pin
Guffa2-Aug-05 21:56
Guffa2-Aug-05 21:56 
GeneralAccessing "Verb" in Main function Pin
Anonymous2-Aug-05 18:58
Anonymous2-Aug-05 18:58 
GeneralRe: Accessing "Verb" in Main function Pin
Christian Graus2-Aug-05 19:14
protectorChristian Graus2-Aug-05 19:14 
GeneralRe: Accessing "Verb" in Main function Pin
Anonymous2-Aug-05 19:58
Anonymous2-Aug-05 19:58 
GeneralRe: Accessing "Verb" in Main function Pin
Christian Graus2-Aug-05 20:04
protectorChristian Graus2-Aug-05 20:04 
QuestionHow to change date time continuously in a Label? Pin
pubududilena2-Aug-05 18:22
pubududilena2-Aug-05 18:22 
AnswerRe: How to change date time continuously in a Label? Pin
Christian Graus2-Aug-05 18:37
protectorChristian Graus2-Aug-05 18:37 
AnswerRe: How to change date time continuously in a Label? Pin
Mohamad Al Husseiny2-Aug-05 19:26
Mohamad Al Husseiny2-Aug-05 19:26 
GeneralRe: How to change date time continuously in a Label? Pin
pubududilena2-Aug-05 22:03
pubududilena2-Aug-05 22:03 
GeneralRe: How to change date time continuously in a Label? Pin
Guffa3-Aug-05 1:48
Guffa3-Aug-05 1:48 
GeneralRe: How to change date time continuously in a Label? Pin
mikker_1233-Aug-05 8:38
mikker_1233-Aug-05 8:38 
AnswerRe: How to change date time continuously in a Label? Pin
Guffa2-Aug-05 22:04
Guffa2-Aug-05 22:04 
AnswerRe: How to change date time continuously in a Label? Pin
MicrosoftBob4-Aug-05 7:31
MicrosoftBob4-Aug-05 7:31 
GeneralRegarding Authentication Pin
Anand Anbalagan2-Aug-05 18:10
Anand Anbalagan2-Aug-05 18:10 
GeneralRe: Regarding Authentication Pin
Frank Kerrigan2-Aug-05 21:36
Frank Kerrigan2-Aug-05 21:36 
GeneralMobile to Computer communication Pin
Jimi George2-Aug-05 17:42
Jimi George2-Aug-05 17:42 
GeneralAccess...pass a value from one form to another form Pin
vtalau2-Aug-05 16:30
vtalau2-Aug-05 16:30 

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.