Jose Koiller
2014-03-27 00:07:20 UTC
Hello All,
Good evening.
I was wondering if there would be an easy way to set up the "custom
info" space in the WinEdt status line to show the encoding format for
the current file being edited.
For example, while editing a UTF-8-encoded file, the tag "UTF-8" (or
some such thing) would show up in that space. When editing a
CP-1252-encoded file, a tag like "1252", "ansinew", or simply "ANSI"
would appear. To check this info now, I have to go the "document" menu
-> "document settings" -> "format" tab (or to click on the 4th space
of the status line after the "?" space, and then the "format" tab).
Some context, in case anyone is interested: When exchanging .tex files
with collaborators, file encoding can be an issue. For example, I was
editing a UTF-8-encoded main .tex file, using
\usepackage[utf8]{inputenx}. When I received another file from a
collaborator to \input{...}, I ran into trouble with my TeX engine,
because that file was CP-1252-encoded, and had some accented
characters. (This collaborator was using an older, non-unicode
compliant version of WinEdt, I think.) WinEdt opens and displays files
with different encodings within the same project without any errors or
warnings, but the TeX engine isn't so graceful... It took me a little
while to figure out what was going on...
I think it would be nice to quickly check the encoding format of new
files I open, just by glancing at the status line...
Thanks a lot, and regards,
Jose
Good evening.
I was wondering if there would be an easy way to set up the "custom
info" space in the WinEdt status line to show the encoding format for
the current file being edited.
For example, while editing a UTF-8-encoded file, the tag "UTF-8" (or
some such thing) would show up in that space. When editing a
CP-1252-encoded file, a tag like "1252", "ansinew", or simply "ANSI"
would appear. To check this info now, I have to go the "document" menu
-> "document settings" -> "format" tab (or to click on the 4th space
of the status line after the "?" space, and then the "format" tab).
Some context, in case anyone is interested: When exchanging .tex files
with collaborators, file encoding can be an issue. For example, I was
editing a UTF-8-encoded main .tex file, using
\usepackage[utf8]{inputenx}. When I received another file from a
collaborator to \input{...}, I ran into trouble with my TeX engine,
because that file was CP-1252-encoded, and had some accented
characters. (This collaborator was using an older, non-unicode
compliant version of WinEdt, I think.) WinEdt opens and displays files
with different encodings within the same project without any errors or
warnings, but the TeX engine isn't so graceful... It took me a little
while to figure out what was going on...
I think it would be nice to quickly check the encoding format of new
files I open, just by glancing at the status line...
Thanks a lot, and regards,
Jose