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

C#

 
GeneralRe: How to press a key Pin
Russell Jones20-Feb-07 5:06
Russell Jones20-Feb-07 5:06 
GeneralRe: How to press a key Pin
sharpiesharpie20-Feb-07 5:18
sharpiesharpie20-Feb-07 5:18 
GeneralRe: How to press a key Pin
Russell Jones20-Feb-07 5:25
Russell Jones20-Feb-07 5:25 
AnswerRe: How to press a key Pin
Martin#21-Feb-07 23:06
Martin#21-Feb-07 23:06 
Questionaccess data from text box Pin
Sunshine Always20-Feb-07 2:28
Sunshine Always20-Feb-07 2:28 
AnswerRe: access data from text box Pin
sharpiesharpie20-Feb-07 3:08
sharpiesharpie20-Feb-07 3:08 
GeneralRe: access data from text box Pin
Sunshine Always20-Feb-07 17:18
Sunshine Always20-Feb-07 17:18 
QuestionUTF8Encoding question Pin
Martin#20-Feb-07 0:52
Martin#20-Feb-07 0:52 
Hello everybody,

Basically the problem is that the UTF8Encoder is not able to get this char '²'.
Is this a known fact, or am I doing something wrong?

This is what I do in a test routine:
using (FileStream fs = File.OpenRead(filename))
{
      byte[] b = new byte[10000];
      UTF8Encoding temp = new UTF8Encoding(false,true);
      int l=0;

      FileStream fw= File.Open("copy.txt",System.IO.FileMode.Create);

      while ((l = fs.Read(b,0,b.Length)) > 0)
      {
           string s= temp.GetString(b, 0, l);
           Console.WriteLine(s);
           //...
      }
      fw.Close();
}

Thanks for your time and help

All the best,

Martin
AnswerRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 2:08
lmoelleb20-Feb-07 2:08 
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 

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.