[texworks] ver 567 Scripts - Cariag/Line returns now coming back as ??

Bruno Voisin bvoisin at me.com
Wed Mar 17 15:30:08 CET 2010

Le 17 mars 2010 à 14:41, Jonathan Kew a écrit :

> Simple: the first is wrong, the second is correct. So the question is, where's that "UTF--8" coming from? My guess is that there must be a "% !TEX encoding" line in your file.

Speaking of which: recently I was processing a file with either TeXworks or TeXShop (depending on the mood of the day), and noticed the difference in encoding names for the line

% !TEX encoding = <encoding>

Namely, TeXShop's help mentions the valid encoding names

•  MacOSRoman
•  IsoLatin
•  IsoLatin2
•  IsoLatin5
•  IsoLatin9
•  IsoLatinGreek
•  Mac Central European Roman
•  MacJapanese
•  DOSJapanese
•  SJIS_X0213
•  JISJapanese
•  MacKorean
•  UTF-8 Unicode
•  Standard Unicode
•  Mac Cyrillic
•  DOS Cyrillic
•  DOS Russian
•  WindowsCentralEurRoman
•  Windows Cyrillic
•  KOI8_R
•  Mac Chinese Traditional
•  Mac Chinese Simplified
•  DOS Chinese Traditional
•  DOS Chinese Simplified
•  GBK
•  GB 2312
•  GB 18030

I  couldn't find similar information in Alain's manual. The TeXworks wiki refers to the encoding pull-down menu in the Prefs

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-03-17 ? 15.11.55.png
Type: image/png
Size: 38594 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100317/6544f1c9/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2010-03-17 ? 15.12.34.png
Type: image/png
Size: 42499 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100317/6544f1c9/attachment-0003.png>
-------------- next part --------------

So this seems to imply the names are quite different and there are no standard names for the encodings. Is this the case? And is there somewhere an explanation of the names used by TeXworks? (I suppose if you don't know what a name means this implies you don't need the encoding anyway, but what's the name then for the widespread Windows Latin 1 aka Windows ANSI -- I imagine windows-1252, but this is far from obvious and requires some time spent on wikipedia.)

I tried to browse the sources to find a list of encodings somewhere inside, but didn't. Are the names inherited from Qt?

What's puzzling is that some of the templates in the source, for example trunk/res/resfiles/templates/Basic LaTeX documents/article.tex, seem to have been inherited from TeXShop and hence use

% !TEX encoding = UTF-8 Unicode

instead of

% !TEX encoding = UTF-8

Does this mean TeXShop's names for encodings are understood by TeXworks?

Bruno Voisin

More information about the texworks mailing list