Why are new files saved with \uFEFF at top of the file?

General and specific configuration/INI settings

Why are new files saved with \uFEFF at top of the file?

Postby YardiDave » Sat Jun 16, 2007 6:13 pm

Apparently I've goofed a configuration setting.

Each time I do a Save As, my file saves fine but after the save I see "\uFEFF" as the first six characters in the file. If I Save As again it wind up with multiple copies of this string. The problem does not occur if I save an existing file. Just when I save a new file or use Save As.

I'm guessing this is some type of internal file type identifier. I also guessing I set something wrong in configuration but I can't see what.

I just need to turn the behaviour off.

I'm using UE13.10 but I started the day with 13.00+

Thanks

Dave
User avatar
YardiDave
Newbie
 
Posts: 2
Joined: Fri Jun 15, 2007 11:00 pm

Re: Configuration Error

Postby Mofi » Sun Jun 17, 2007 6:53 am

You are saving new files in format Unicode- ASCII Escaped. Create a new file, type something, open the Save As dialog and look on the Format drop down list. You will see that you have Unicode- ASCII Escaped selected there.

Change that to Default (= current format of the file) or ANSI/ASCII (= always ANSI/ASCII format) and save the file. The "Format" and "Line Terminator" settings are remembered and used until you change it again. These settings are also used when using the Save As macro or script commands. In uedit32.ini they are saved as:

[Settings]
File Format=0
Terminator Type=0
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Why are new files saved with \uFEFF at top of the file?

Postby YardiDave » Sun Jun 17, 2007 2:11 pm

That did the trick. Thank you very much.
User avatar
YardiDave
Newbie
 
Posts: 2
Joined: Fri Jun 15, 2007 11:00 pm


Return to Configuration/INI Settings