Discussion:
strange characters in pdf output related to utf-8 and ANSI for .tex files
w***@cox.net
2014-05-03 10:30:37 UTC
Permalink
Hello,

I had some strange characters just once appearing in my pdf output, something like an iu both with umlaut and a sterling symbol,in my pdf output, always at the end of a section and at the top of the page. A search yielded the following:

http://tex.stackexchange.com/questions/67170/compatibility-issues-with-winedt-how-do-i-fix-it

I then went through every .tex and .sty file in my project and clicked on the TeX mode and changed the Format from utf-8 to ANSI. The characters no longer appear in my pdf output. The characters are not a WinEdt problem, but they motivate the question:

Is there a way to get ANSI as the default for .tex files?

I've poked around already and can't find it, if it's there.

Thanks,

Walter Kehowski
Simon Platt
2014-05-03 14:07:07 UTC
Permalink
Dear Walter,

I think the answer to your question is available here (WinEdt 7):

Options>Preferences>Unicode>Help

On the other hand, I have recently adopted more-or-less the opposite
approach, with

\usepackage[utf8]{inputenc}

Even as an Englishman, who uses non-ASCII characters but rarely, I have
found that convenient.
Post by w***@cox.net
Hello,
I had some strange characters just once appearing in my pdf output,
something like an iu both with umlaut and a sterling symbol,in my pdf
output, always at the end of a section and at the top of the page. A
http://tex.stackexchange.com/questions/67170/compatibility-issues-with-winedt-how-do-i-fix-it
I then went through every .tex and .sty file in my project and clicked on
the TeX mode and changed the Format from utf-8 to ANSI. The characters no
longer appear in my pdf output. The characters are not a WinEdt problem,
Is there a way to get ANSI as the default for .tex files?
I've poked around already and can't find it, if it's there.
Thanks,
Walter Kehowski
--
Simon Platt
Ulrike Fischer
2014-05-03 16:35:38 UTC
Permalink
Post by w***@cox.net
Hello,
I had some strange characters just once appearing in my pdf
output, something like an iu both with umlaut and a sterling
symbol,in my pdf output, always at the end of a section and at
I then went through every .tex and .sty file in my project and
clicked on the TeX mode and changed the Format from utf-8 to
ANSI.
That is not a sensible solution.

If you see this " ̄" then keep the utf8 format but go to
Document->Document settings-> Tab Format and uncheck "include
unicode BOM".
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
w***@cox.net
2014-05-03 17:28:52 UTC
Permalink
Thanks Simon and Ulrike.

I added the the line

\usepackage[utf8]{inputenc}

to my preamble, just above

\usepackage[T1]{fontenc}

and then went to Options->Preference->Unicode and then added TeX to the list of utf8 modes. Just covering all the bases. I gues it was too late in the morning for me to think of that! I then erased my output files, recompiled, and no funny symbols antwhere!

Thanks!
Post by Ulrike Fischer
Post by w***@cox.net
Hello,
I had some strange characters just once appearing in my pdf
output, something like an iu both with umlaut and a sterling
symbol,in my pdf output, always at the end of a section and at
I then went through every .tex and .sty file in my project and
clicked on the TeX mode and changed the Format from utf-8 to
ANSI.
That is not a sensible solution.
If you see this "ïż£" then keep the utf8 format but go to
Document->Document settings-> Tab Format and uncheck "include
unicode BOM".
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Loading...