Home Download Buy Blog Forum Support

Encoding in Sublime

Encoding in Sublime

Postby selyn on Wed Apr 18, 2012 4:22 pm

Hi all,

I just changed to Sublime Text 2 recently and am still testing it.

Context:
I have to program some weird software including the specific Encoding DOS CP-850 (Western European / IBM ...) and need the editor show the view in that encoding (e.g. display "äöü" also as "äöü" and not some crazy crack).

Now I need some help. How can I change the Encoding View or something like that?

already tried:
* EncodingHelper-Package: it just turn the document to UTF-8. But I need it in CP850 ...
* add in Main.sublime-menu in the .config/sublime-text-2/Packages/Default/ Folder after
Code: Select all
"caption": "Reopen with Encoding",
                "children":
                [

this line
Code: Select all
{ "caption": "CP 850", "command": "reopen", "args": {"encoding": "DOS (CP 850)" } },


As already said, I just started with Sublime, so I dont know very much about it :/

Hope Anyone can help

Greets
Selyn

System: Ubuntu 11.04
selyn
 
Posts: 1
Joined: Wed Apr 18, 2012 4:09 pm

Re: Encoding in Sublime

Postby jps on Thu Apr 19, 2012 2:06 am

Unfortunately, Codepage 850 isn't one of the supported encodings
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Encoding in Sublime

Postby bizoo on Thu Apr 19, 2012 6:23 am

Python support more encodings, including cp850.

EncodingHelper plugin is already able to open a cp850 encoded file and convert it to utf8 (I suppose as I don't use it), so now what you need is a plugin to write the file back as cp850 encoding and not utf8.
I think a plugin that do that (or an expanded version of EncodingHelper) will be useful for some people, but I've no time now to look at it.
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Encoding in Sublime

Postby dali on Sun Mar 17, 2013 8:08 am

Not having support for CP850 is kind of a deal breaker for me (being Swedish). Unfortunate since Sublime Text looks like it could be the first editor I would be willing to pay for. :cry:

Will CP850 be supported in Sublime Text 3?
dali
 
Posts: 1
Joined: Sun Mar 17, 2013 8:04 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 20 guests