File types versus formats

General and specific configuration/INI settings

File types versus formats

Postby CWBillow » Tue Dec 25, 2007 3:36 pm

I see where I can set file types and extensions, but is there a way to set file formats as defaults for certain file types -- like for Registry entries, setting the format to default to UTF-16?

I seem to sometimes end up with Unicode ASCII Escaped... not entirely sure why, just that sometimes if I don't stipulate file formats, I end up with problems.

So it seems that UE, in reading the registry entries, isn't always saving it like it should... so I must have some setting amiss...

Regards,
Chuck Billow
User avatar
CWBillow
Basic User
Basic User
 
Posts: 32
Joined: Tue Feb 15, 2005 12:00 am
Location: Chula Vista, CA

Re: File types versus formats

Postby Mofi » Thu Dec 27, 2007 4:15 pm

No, you can't specify the file format according to file extensions. New files are always saved in the format you have specified in the Save As dialog and this setting is remembered for next Save As.

If you have problems with the Format setting in the Save As dialog because you sometimes forgot to change it back to what you normally need after once using a different format, I suggest not to use it. Set the Format setting in the Save As dialog to Default and use the File - Conversions functions whenever a new file needs a special format.

All you can specify in the configuration is what type of line terminator you want for new files by default (DOS/UNIX/MAC) and if new files should be by default an ASCII/ANSI file or a Unicode file. That's it.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: File types versus formats

Postby christiannielsen » Fri Dec 05, 2008 9:19 am

Set the Format setting in the Save As dialog to Default

What decides the value of 'Default' ?
christiannielsen
Newbie
 
Posts: 1
Joined: Fri Dec 05, 2008 9:18 am

Re: File types versus formats

Postby Mofi » Fri Dec 05, 2008 10:20 am

Default results in saving a new file with format (encoding) and line terminators the file currently has as indicated in the status bar at bottom of the UltraEdit main window - see in help of UE on page Status Bar the chapter File Type.

If an existing file was opened and is saved now as new file, it will have exactly the same format and line terminators as the opened file had including the existence of the byte order mark (BOM) for UTF files, except something was changed automatically on file load depending on various configuration settings or by the user with commands at File - Conversions.

Following configuration settings determine the file format and line terminators too:

  • The setting Create new files as Unicode at Editor - New File Creation (for UE < v16.00).
  • The settings at File Handling - DOS/UNIX/MAC Handling.
  • The 2 UTF-8 settings at File Handling - Save.
  • The settings at File Handling - Unicode/UTF-8 Detection.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Configuration/INI Settings