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

C#

 
AnswerRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 2:08
lmoelleb20-Feb-07 2:08 
Can your console output the character even if it is read correctly? If your console code page does not support it your program won't display it.

UTF8 is multibyte, so your read operation might split the byte stream in the middle of a character. Create a StreamReader with Encoding.UTF8 to avoid having to deal with this manually.

Edit: Are you sure your file is actually UTF-8 encoded? Smile | :)
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 2:16
Martin#20-Feb-07 2:16 
GeneralRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 2:29
lmoelleb20-Feb-07 2:29 
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 2:47
Martin#20-Feb-07 2:47 
GeneralRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 3:28
lmoelleb20-Feb-07 3:28 
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 3:30
Martin#20-Feb-07 3:30 
QuestionRe: UTF8Encoding question Pin
Martin#20-Feb-07 3:13
Martin#20-Feb-07 3:13 
AnswerRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 3:26
lmoelleb20-Feb-07 3:26 
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 3:39
Martin#20-Feb-07 3:39 
QuestionMaskedTextBox Pin
md_refay20-Feb-07 0:45
md_refay20-Feb-07 0:45 
QuestionWaiting... Pin
markymark8220-Feb-07 0:25
markymark8220-Feb-07 0:25 
AnswerRe: Waiting... Pin
stancrm20-Feb-07 0:28
stancrm20-Feb-07 0:28 
AnswerRe: Waiting... Pin
ednrgc20-Feb-07 2:14
ednrgc20-Feb-07 2:14 
Questionformatting [modified] Pin
md_refay19-Feb-07 23:44
md_refay19-Feb-07 23:44 
AnswerRe: formatting Pin
NanaAM19-Feb-07 23:59
NanaAM19-Feb-07 23:59 
AnswerRe: formatting Pin
Stefan Troschuetz20-Feb-07 0:03
Stefan Troschuetz20-Feb-07 0:03 
Questionprevent keypress Pin
md_refay19-Feb-07 23:42
md_refay19-Feb-07 23:42 
AnswerRe: prevent keypress Pin
Martin#20-Feb-07 0:08
Martin#20-Feb-07 0:08 
GeneralRe: prevent keypress Pin
Ashvin Gunga20-Feb-07 19:10
Ashvin Gunga20-Feb-07 19:10 
QuestionAccess web page text from C# Pin
Mark T.19-Feb-07 23:32
Mark T.19-Feb-07 23:32 
AnswerRe: Access web page text from C# Pin
patt20-Feb-07 0:04
patt20-Feb-07 0:04 
GeneralRe: Access web page text from C# - Not Yet Pin
Mark T.20-Feb-07 1:40
Mark T.20-Feb-07 1:40 
GeneralRe: Access web page text from C# - Not Yet Pin
patt20-Feb-07 1:55
patt20-Feb-07 1:55 
GeneralRe: Access web page text from C# - Not Yet Pin
__DanC__20-Feb-07 2:17
__DanC__20-Feb-07 2:17 
AnswerAdditional Information - accessing web page Pin
Mark T.20-Feb-07 3:54
Mark T.20-Feb-07 3:54 

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.