[texworks] Editor messes with Latin1 encoded files (Umlaute destroyed)

Jonathan Kew jfkthame at googlemail.com
Wed Jan 6 22:16:57 CET 2010

On 6 Jan 2010, at 20:59, Matthias Pospiech wrote:

> Joseph Wright schrieb:
>> % !TEX encoding = <insert-encoding-here>
> I am surprised that you introduce editor specific code...
>> or of course change the TeXworks preferences to default to something other than UTF8.
> That would unfortunately not match my needs. I have code written under linux and others written under windows.
> And I never know in advance what I load. So I really need to specify this in the loading dialog or after the file is loaded.
> Changing the settings each time does not look like the right solution, though it would probably work .

I'd like to provide an easy way to handle this, but it's not currently implemented.

> Isnt there some kind of library that KDE wanted to use to identify the encoding in advance for their KDE 4 series?

You mean automatically? That's inherently problematic; in many cases it's impossible to be sure, if the text contains just a few non-ASCII codepoints.

For TeXworks to use any such library, it would also need to be readily portable to Windows and Mac OS X, not tied to other aspects of Linux or KDE.

More information about the texworks mailing list