Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: !!! Plz Help, Project Required Uploading Images with adding Texts/Descriptions !! Pin
Christian Graus28-Apr-08 11:07
protectorChristian Graus28-Apr-08 11:07 
GeneralRe: !!! Plz Help, Project Required Uploading Images with adding Texts/Descriptions !! Pin
Thomas Toh27-Apr-08 21:07
Thomas Toh27-Apr-08 21:07 
GeneralRe: !!! Plz Help, Project Required Uploading Images with adding Texts/Descriptions !! Pin
Christian Graus28-Apr-08 11:10
protectorChristian Graus28-Apr-08 11:10 
GeneralRe: !!! Plz Help, Project Required Uploading Images with adding Texts/Descriptions !! Pin
Thomas Toh30-Apr-08 22:19
Thomas Toh30-Apr-08 22:19 
GeneralRe: !!! Plz Help, Project Required Uploading Images with adding Texts/Descriptions !! Pin
Christian Graus30-Apr-08 23:53
protectorChristian Graus30-Apr-08 23:53 
Questionerror provider icon... Pin
csetopper_bhanu27-Apr-08 16:22
csetopper_bhanu27-Apr-08 16:22 
GeneralRe: error provider icon... Pin
C1AllenS27-Apr-08 17:45
C1AllenS27-Apr-08 17:45 
Generalencoding of textfile Pin
stephan_00727-Apr-08 11:47
stephan_00727-Apr-08 11:47 
hy everyone!

does anyone of you know how to get the correct encoding of a textfile?

because i do read the file via a streamreader and write a new one with streamwriter. but sometimes i do have problems with some signs.

i know the file was created on a unix machine (line seperators just \n instead of \r\n in windows etc.).

streamreader and streamwriter allow encoding to be used as a second/additional parameter when reading or writing of/to the file.

so my two questions:

1) which encoding do i have to use for unix textfiles so the characters are read and written correctly? (because here in europe we have characters like "ö" or "ä" but they are not displayed correctly during writing the file. in the original file they are displayed correctly. so i want to provide the encoding in the parameter, but there are so many. and i am not sure, if i choose one which seems to be working on one file, does this mean it works for every unix textfile?

2) is there a chance to get the encoding of the file, when reading it without knowing it from the beginning? meaning, i want to find out the encoding when i access the file and set it when reading it, some kind of "dynamic encoding setting".

thanks.

stephan.
GeneralRe: encoding of textfile Pin
Derek Bartram27-Apr-08 11:50
Derek Bartram27-Apr-08 11:50 
GeneralRe: encoding of textfile Pin
stephan_00727-Apr-08 11:55
stephan_00727-Apr-08 11:55 
GeneralRe: encoding of textfile Pin
Derek Bartram27-Apr-08 12:14
Derek Bartram27-Apr-08 12:14 
GeneralRe: encoding of textfile Pin
Luc Pattyn27-Apr-08 13:16
sitebuilderLuc Pattyn27-Apr-08 13:16 
GeneralEnvironment.Exit Pin
George_George27-Apr-08 4:41
George_George27-Apr-08 4:41 
GeneralRe: Environment.Exit Pin
S. Senthil Kumar27-Apr-08 6:10
S. Senthil Kumar27-Apr-08 6:10 
GeneralRe: Environment.Exit Pin
George_George27-Apr-08 17:18
George_George27-Apr-08 17:18 
QuestionCan any one tell me how to extract Excel worksheet images and store them in database? Pin
Ali00099927-Apr-08 1:34
Ali00099927-Apr-08 1:34 
AnswerRe: Can any one tell me how to extract Excel worksheet images and store them in database? Pin
#realJSOP27-Apr-08 3:01
professional#realJSOP27-Apr-08 3:01 
GeneralRe: Can any one tell me how to extract Excel worksheet images and store them in database? Pin
Ali00099928-Apr-08 19:18
Ali00099928-Apr-08 19:18 
QuestionHow to get cpu temp c# .NET [modified] Pin
kennet197427-Apr-08 1:32
kennet197427-Apr-08 1:32 
AnswerRe: How to get cpu temp c# .NET Pin
Anthony Mushrow27-Apr-08 1:56
professionalAnthony Mushrow27-Apr-08 1:56 
GeneralRe: How to get cpu temp c# .NET Pin
Thomas Stockwell27-Apr-08 3:07
professionalThomas Stockwell27-Apr-08 3:07 
GeneralRe: How to get cpu temp c# .NET Pin
Anthony Mushrow27-Apr-08 3:15
professionalAnthony Mushrow27-Apr-08 3:15 
QuestionRe: How to get cpu temp c# .NET Pin
kennet197427-Apr-08 4:15
kennet197427-Apr-08 4:15 
GeneralRe: How to get cpu temp c# .NET Pin
Christian Graus27-Apr-08 11:43
protectorChristian Graus27-Apr-08 11:43 
QuestionProcess information in C# Pin
I'm a member...27-Apr-08 0:48
I'm a member...27-Apr-08 0:48 

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.