Author Topic: How to set Default Encoding to Unicode for new files dialog  (Read 2101 times)

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
How to set Default Encoding to Unicode for new files dialog
« on: September 20, 2013, 12:00:22 pm »
If I type 'new' in the command line, I get the dialog for creating new files.
In this dialog, 'encoding' is by default set to 'Automatic'.
I would appreciate it very much, if this would be 'Unicode' by default.

Does anybody know how to achieve this?

TIA
Otto

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: How to set Default Encoding to Unicode for new files dialog
« Reply #1 on: September 20, 2013, 03:47:44 pm »
We don't have a way to set the default ordering of the dialog. However, there is a way to set the default encoding used by "Automatic" on a per file extension basis.
Go to the Tools > Options dialog, and look at the Languages > File Extension manager section. In that dialog is a list of file extensions, and you can pick the explicit encoding used there.

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
Re: How to set Default Encoding to Unicode for new files dialog
« Reply #2 on: September 20, 2013, 07:38:16 pm »
Yes, I know. I can do this in the save dialog too, when I save a 'new' file. But there I always have to remind that I still have to set the encoding. Also, I use 'new' for different reasons, e.g. for editing some config files with totally different extensions. So it doesn't make sense for me to try to create all possible extensions in advance.

Anyway, thank you very much for your help.

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: How to set Default Encoding to Unicode for new files dialog
« Reply #3 on: September 20, 2013, 07:57:31 pm »
Another quick way to do this doesn't involve using the file dialog, but rather the SlickEdit command line.
1) On the SE command line, use the cd <dirpath> command to change to the directory you want to create the new file in.
2) Again on the SE command line, use the e +futf8 file.ext command.

The +futf8 argument is where you specify the encoding, in this example UTF-8. +fcpNNNN is used when you know the code page number. For example, 932 for Japanese Shift-JIS would be specified as e +fcp932 japanese.txt

deuse

  • Community Member
  • Posts: 33
  • Hero Points: 0
Re: How to set Default Encoding to Unicode for new files dialog
« Reply #4 on: September 20, 2013, 08:22:49 pm »
Ah. That's very helpful since I use the command line very much.
Thanks!