Home Download Buy Blog Forum Support

Changing the default file encoding

Changing the default file encoding

Postby pesla on Tue Oct 25, 2011 11:33 am

Hi there,

I'm working on a large project in which all files are encoded as Windows-1252 (or CP1252). Sublime Text 2 opens and writes all files as UTF8 by default, which is really annoying. It basically screws up my workflow. It means I always have to reopen a file with my desired encoding. I expected a setting to overwrite the default encoding settings, but up untill now, I haven't found a way to do so. I've seen ST's command list, which is probably used by plugin developers, and it does list the option "openWithEncoding", which makes it quite possible that I'm just overlooking the feature (see: http://www.sublimetext.com/docs/commands).

Does anyone have an idea to solve this without having to work around it?

Thanks!
pesla
 
Posts: 3
Joined: Tue Oct 25, 2011 11:07 am

Re: Changing the default file encoding

Postby stefanpausch on Tue Oct 25, 2011 12:04 pm

Besides that issue i ran into too i would love to see the set encoding of the file in die lower bar
stefanpausch
 
Posts: 19
Joined: Mon Oct 03, 2011 5:39 pm

Re: Changing the default file encoding

Postby Mylith on Tue Oct 25, 2011 12:56 pm

Hey pesla,

here is a bigger topic about encoding but there is no "good" solution for your problem (I have the same). Maybe jps will see the problem...
Mylith
 
Posts: 30
Joined: Mon Oct 17, 2011 12:58 pm

Re: Changing the default file encoding

Postby pesla on Tue Oct 25, 2011 1:14 pm

Thanks for the replies guys. This will be holding me back from using ST2 for now, which is a shame really.
pesla
 
Posts: 3
Joined: Tue Oct 25, 2011 11:07 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 24 guests