[Mono-list] Extra characters in Console.Write output

Peter Williams peter@newton.cx
12 Jul 2003 13:04:13 -0400


On Sat, 2003-07-12 at 12:02, Richard Thombs wrote:
> I'm seeing extra characters at the beginning of Console.Write output in
> RedHat 9. A simple Console.WriteLine("Hello, World!\n") gives three
> extra byes at the beginning of the output: ef, bb, bf before printing
> the 'H' of Hello.
> 
> Any ideas? The monodis has the correct string in it.
> 
> Thanks,
> 
> Stony.

This is Red Hat 9 (probably) using UTF8 on its console; the bytes are
some kind of UTF8 endianness markers I think. I don't think it's
possible to get rid of them in a nice way, but if you do

LC_ALL=C mono myexe.exe

they shouldn't show up.

Peter

-- 
Peter Williams                          peter@newton.cx

"[Ninjas] are cool; and by cool, I mean totally sweet."
                              -- REAL Ultimate Power