Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
AnswerRe: spyware signatures [modified] Pin
Pradd7-Jun-06 8:30
Pradd7-Jun-06 8:30 
Questionfile header Pin
Mahmood Ilyas7-Jun-06 0:38
Mahmood Ilyas7-Jun-06 0:38 
AnswerRe: file header Pin
User 66587-Jun-06 0:55
User 66587-Jun-06 0:55 
AnswerRe: file header Pin
rah_sin7-Jun-06 0:57
professionalrah_sin7-Jun-06 0:57 
QuestionIsCharUnicode Function [modified] Pin
Tristan Rhodes6-Jun-06 23:52
Tristan Rhodes6-Jun-06 23:52 
AnswerRe: IsCharUnicode Function [modified] Pin
lmoelleb7-Jun-06 1:40
lmoelleb7-Jun-06 1:40 
GeneralRe: IsCharUnicode Function [modified] Pin
Tristan Rhodes7-Jun-06 4:19
Tristan Rhodes7-Jun-06 4:19 
GeneralRe: IsCharUnicode Function [modified] Pin
lmoelleb7-Jun-06 5:10
lmoelleb7-Jun-06 5:10 
UTF-7 strings ARE unicode strings. More specifically it is a 7 bit encoding of the Unicode character set - just like UTF-8, UTF-16 and UTF-32 are 8, 16, and 32 bit encodings.

If you have read a string as if it was ASCII, but it actually contains UTF-7, convert as follows (from memory, so expect typos etc):

Encoding.UTF7.GetString(Encoding.ASCII.GetBytes(theString))

To generate a UTF7 encoded string that will turn out correct when set as an ASCII text do this:

Encoding.ASCII.GetString(Encoding.UTF7.GetBytes(theString))


If the result of the conversion is the same as what you started with - then it does not require any conversion, so a simple string comparison will be enough to tell you, but you really do not need this if you already have UTF7, just convert everything.

Also notice that besides maybe Klingon and the likes, you should expect every character to be available though at least ONE codepage besides Unicode. You need to think about it as "does this codepage support this character", not as "Does this character require Unicode", as the latter simply does not have a defined result.

GeneralRe: IsCharUnicode Function [modified] Pin
Tristan Rhodes7-Jun-06 5:45
Tristan Rhodes7-Jun-06 5:45 
QuestionBest way to integrate windows messenger functionality to an application Pin
spAAwn6-Jun-06 23:26
spAAwn6-Jun-06 23:26 
AnswerRe: Best way to integrate windows messenger functionality to an application Pin
spAAwn7-Jun-06 22:11
spAAwn7-Jun-06 22:11 
QuestionFind a Folder in a 3rd party FolderDialog??? Pin
suguimoto6-Jun-06 23:26
suguimoto6-Jun-06 23:26 
QuestionEncoding Problem Pin
malikjhangirahmed@hotmail.com6-Jun-06 22:57
malikjhangirahmed@hotmail.com6-Jun-06 22:57 
QuestionGDI+ To slow.. Pin
User 22614746-Jun-06 22:55
User 22614746-Jun-06 22:55 
QuestionChanging userControl properties run time?? Pin
Nafiseh Salmani6-Jun-06 22:42
Nafiseh Salmani6-Jun-06 22:42 
AnswerRe: Changing userControl run time?? [modified] Pin
Mairaaj Khan6-Jun-06 23:33
professionalMairaaj Khan6-Jun-06 23:33 
QuestionRe: Changing userControl run time?? [modified] Pin
Nafiseh Salmani7-Jun-06 0:31
Nafiseh Salmani7-Jun-06 0:31 
AnswerRe: Changing userControl run time?? [modified] Pin
Mairaaj Khan7-Jun-06 20:49
professionalMairaaj Khan7-Jun-06 20:49 
QuestionHandleCreated problem Pin
sianatia6-Jun-06 22:14
sianatia6-Jun-06 22:14 
AnswerRe: HandleCreated problem Pin
Mairaaj Khan6-Jun-06 23:27
professionalMairaaj Khan6-Jun-06 23:27 
QuestionXML encryption Pin
engsrini6-Jun-06 22:09
engsrini6-Jun-06 22:09 
QuestionRich Text Box Questions Pin
Peter Sbarski6-Jun-06 21:09
Peter Sbarski6-Jun-06 21:09 
AnswerRe: Rich Text Box Questions Pin
Mairaaj Khan6-Jun-06 21:50
professionalMairaaj Khan6-Jun-06 21:50 
QuestionUsing TripleDES Encryption [modified] Pin
cybersurferdev6-Jun-06 20:45
cybersurferdev6-Jun-06 20:45 
AnswerRe: Using TripleDES Encryption [modified] Pin
stancrm6-Jun-06 21:21
stancrm6-Jun-06 21:21 

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.