EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     [Solved] Line ending format
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Salabim
Posted on: 1/20/2011 11:41 am
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
[Solved] Line ending format
Hi,

Is it possible to make it easier to detect the current document's line-ending format & Encoding method ?

As, an example, with this little notepad replacement, notepad2, it's very easy with these menu options :

File / Encoding...
File / Line Endings...

notepad2 here : http://www.flos-freeware.ch/notepad2.html

It would be great if EmEditor has these 2 tiny options too.
CrashNBurn
Posted on: 1/20/2011 12:04 pm
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Line ending format
That info is displayed in the status bar, bottom right-hand corner.
Salabim
Posted on: 1/20/2011 1:43 pm
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
Re: Line ending format
I only see "Western European (Windows) there.
I don't see or know which ending format was used (CR+LF or Unicode or ANSI or UTF-8)

If I open it in notepad2, I see everything on the status-line, and also using the File/... options.

I nowhere find which Line Ending format was used in EmEditor ?
(or if it's Unicode or ANSI)
CrashNBurn
Posted on: 1/20/2011 1:54 pm
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Line ending format
Western-European = ISO 8859-1, e.g. English ANSI

IF you choose Save-As you can change the Encoding from there.
Or File|Reload
Lets you change to UTF-8, or UTF-16LE (you can also do UTF-BE, but windows uses UTF-16LE) among other encodings.

If you do so, you will see the information in the status bar change.

As well if it is a standard windows file you'll see CR+LF in the bottom right of the Status Bar.

You can also change the "Return Method" in the Save-As dialog.
Salabim
Posted on: 1/20/2011 2:00 pm
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
Re: Line ending format
Thanks for the continuous help Crash,

The problem is, I don't want to save, I only want to know the proper specs when I open a file. This is especially important for like .srt (subtitle files for media files)

They need to be in a specific format or they are not recognized (correctly).

Quote:
Western-European = ISO 8859-1, e.g. English ANSI


So, how do I recognize a Unicode format file then ?
It would be much easier if the status bar gives a more detailed info like Ansi or Unicode, same for the line ending format.

I have no single clue of the line-ending method used if the status bar says no more than "Western-European"
CrashNBurn
Posted on: 1/20/2011 5:38 pm
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Line ending format
Tools | Customize
[Status]
...
[] Return Method

If it is an "English" Ansi file, it will display Western EUropean.

If it is unicode, you'll see UTF-8 , or UTF-16LE, etc.

Personally, I'd prefer to just see ANSI, but EmEditor is used all over the world and it makes sense that it will show the actual 'codepage', though customizable in that aspect would be good.

Just save a file in one of the UTF formats during Save-As, or File|Reencode, and you'll see that.

Salabim
Posted on: 1/22/2011 12:45 pm
Quite a regular
Joined: 9/5/2009
From: Ghent (Belgium)
Posts: 58
Re: Line ending format
Doh!

I had that option unchecked.
Thank you very very much Crash !

Topic = SOLVED
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文