C# UTF-8 Files being misread as DOS?

Display customization and font issues

C# UTF-8 Files being misread as DOS?

Postby PaoloFCantoni » Sun Aug 14, 2005 10:06 am

I'm outputting files from C# - which I'm new to. I'm using a StreamWriter (which is supposed to default to UTF-8 encoding).

When I look at these files with UE 11.10 the guillemet characters are incorrectly rendered:
<Persistence>«Unknown»</Persistence>

If I use one of the conversions (such as UTF-8 to ASCII), they are rendered correctly:
<Persistence>«Unknown»</Persistence>

When I first open the file, the status bar shows DOS. Should it?
Is it a rendering or an encoding problem?

I've had a search of the forum but none of the UTF-8 posts seem to be directly relevant.

Cheerz,
Paolo

PS: Some further testing shows UltraCompare will identify the files correctly as UTF-8 with correct rendering.
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: C# UTF-8 Files being misread as DOS?

Postby Mofi » Mon Aug 15, 2005 10:16 am

Have you enabled Auto detect UTF-8 files at the general configuration page?

Read in help of UltraEdit the chapter Unicode and UTF-8 Support for details.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: C# UTF-8 Files being misread as DOS?

Postby PaoloFCantoni » Mon Aug 15, 2005 12:49 pm

Yes,

That did it. Thanks Mofi! I had other UTF support enabled, but I must have accidentally unchecked it...

Cheerz,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia


Return to Editor Display

cron