Click here to Skip to main content
15,908,274 members
Home / Discussions / C#
   

C#

 
QuestionInvalidOperationException but why? Pin
error14084-Aug-07 3:47
error14084-Aug-07 3:47 
AnswerRe: InvalidOperationException but why? Pin
Gamzun4-Aug-07 10:27
Gamzun4-Aug-07 10:27 
GeneralRe: InvalidOperationException but why? Pin
error14084-Aug-07 10:32
error14084-Aug-07 10:32 
GeneralRe: InvalidOperationException but why? Pin
Gamzun4-Aug-07 10:36
Gamzun4-Aug-07 10:36 
GeneralRe: InvalidOperationException but why? Pin
error14084-Aug-07 10:42
error14084-Aug-07 10:42 
GeneralRe: InvalidOperationException but why? Pin
Gamzun4-Aug-07 10:47
Gamzun4-Aug-07 10:47 
QuestionHebrew chars returned by Directory.GetFiles problem Pin
impeham4-Aug-07 3:34
impeham4-Aug-07 3:34 
AnswerRe: Hebrew chars returned by Directory.GetFiles problem Pin
Luc Pattyn4-Aug-07 4:15
sitebuilderLuc Pattyn4-Aug-07 4:15 
Hi,

you can specify which character encoding should be used when writing text to
a file. By default ASCII is used, and non-ASCII characters get mapped onto
ASCII characters somehow (e.g. accents would be dropped); of course for very
different scripts, such mapping makes no sense. You really want a file that
can hold real 16-bit characters where appropriate.

One way of doing this is by using a StreamWriter; one of its constructor
overloads takes an Encoding object, you should consider Encoding.Unicode

BTW: your Hebrew characters are real characters, if Visual shows them as numbers
that's to make sure you can read them (if you're unfamiliar with the script),
and you can paste them like that in an ASCII file. Normally your source files
are ASCII files, taking one byte per character; as soon as you paste a non-ASCII
character in a string literal or so, the file will be saved as a UTF8 or a Unicode
file, and may no longer be readable by other apps.


Smile | :)


GeneralRe: Hebrew chars returned by Directory.GetFiles problem Pin
impeham4-Aug-07 4:33
impeham4-Aug-07 4:33 
AnswerRe: Hebrew chars returned by Directory.GetFiles problem Pin
Mike Dimmick4-Aug-07 4:34
Mike Dimmick4-Aug-07 4:34 
Questiontags - how to? Pin
Jassim Rahma4-Aug-07 3:31
Jassim Rahma4-Aug-07 3:31 
AnswerRe: tags - how to? Pin
Colin Angus Mackay4-Aug-07 12:51
Colin Angus Mackay4-Aug-07 12:51 
GeneralRe: tags - how to? Pin
Jassim Rahma5-Aug-07 5:41
Jassim Rahma5-Aug-07 5:41 
GeneralRe: tags - how to? Pin
Colin Angus Mackay5-Aug-07 5:50
Colin Angus Mackay5-Aug-07 5:50 
Questioninternet cafe software - help needed Pin
Jassim Rahma4-Aug-07 3:21
Jassim Rahma4-Aug-07 3:21 
AnswerRe: internet cafe software - help needed Pin
The ANZAC4-Aug-07 13:02
The ANZAC4-Aug-07 13:02 
GeneralRe: internet cafe software - help needed Pin
Jassim Rahma5-Aug-07 5:56
Jassim Rahma5-Aug-07 5:56 
QuestionHow can I access an html element in frame. Pin
VahagnSC4-Aug-07 0:37
VahagnSC4-Aug-07 0:37 
AnswerRe: How can I access an html element in frame. Pin
George L. Jackson4-Aug-07 6:20
George L. Jackson4-Aug-07 6:20 
QuestionWindows form global object Pin
Krugger4044-Aug-07 0:22
Krugger4044-Aug-07 0:22 
AnswerRe: Windows form global object [modified] Pin
Colin Angus Mackay4-Aug-07 0:31
Colin Angus Mackay4-Aug-07 0:31 
GeneralRe: Windows form global object Pin
Christian Graus4-Aug-07 0:47
protectorChristian Graus4-Aug-07 0:47 
GeneralRe: Windows form global object Pin
Colin Angus Mackay4-Aug-07 0:50
Colin Angus Mackay4-Aug-07 0:50 
GeneralRe: Windows form global object Pin
Krugger4044-Aug-07 0:58
Krugger4044-Aug-07 0:58 
AnswerRe: Windows form global object Pin
Manoj Kumar Rai4-Aug-07 0:49
professionalManoj Kumar Rai4-Aug-07 0:49 

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.