Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accented characters made with Notepad

56 views
Skip to first unread message

Jean-Pierre Coulon

unread,
Nov 2, 2011, 9:27:55 AM11/2/11
to
A colleague has written a text with accented characters with Notepad under XP.
How can I include this tex into a LaTeX document? \usepackage[cp850]{inputenc}
didn't work. Same with [latin1].

When I open the Notepad document with the old DOS EDIT each accented character
is represented by *two* strange characters.

Regards,
--
Jean-Pierre Coulon (here "cacas.pam" is what others call "nospam")

Adam H. Kerman

unread,
Nov 2, 2011, 11:44:29 AM11/2/11
to
Jean-Pierre Coulon <cou...@cacas.pam.obs-nice.fr> wrote:

>A colleague has written a text with accented characters with
>Notepad under XP. How can I include this tex into a LaTeX
>document? \usepackage[cp850]{inputenc} didn't work. Same with [latin1].

>When I open the Notepad document with the old DOS EDIT each accented
>character is represented by *two* strange characters.

Character set mismatch. DOS EDIT likely assumes the old IBM character set,
doesn't it? Notepad likely assumes Windows-1252, Microsoft's deliberately
incompatible Latin-1 character set.

Ask in comp.editors or a TeX group.

Helmut Richter

unread,
Nov 2, 2011, 12:49:40 PM11/2/11
to
"*two* strange characters" looks more like UTF-8.

Perhaps, there is a way to accept UTF-8 in LaTeX.

Otherwise, I have a Perl script transforming Windows-1252 or UTF-8 or a
mixture thereof to something else. It does not produce LaTeX input but it
could produce something that can be transformed to LaTeX input by simple
editor commands. The script runs now under Linux, and is as well
transferrable to Windows as any other Perl script -- should in principle
not be a problem but I have no experience.

The item is OT here but comp.std.internat has been closed down.

--
Helmut Richter

Adam H. Kerman

unread,
Nov 2, 2011, 2:53:48 PM11/2/11
to
Helmut Richter <hh...@web.de> wrote:
>On Wed, 2 Nov 2011, Adam H. Kerman wrote:
>>Jean-Pierre Coulon <cou...@cacas.pam.obs-nice.fr> wrote:

>>>A colleague has written a text with accented characters with
>>>Notepad under XP. How can I include this tex into a LaTeX
>>>document? \usepackage[cp850]{inputenc} didn't work. Same with [latin1].

>>>When I open the Notepad document with the old DOS EDIT each accented
>>>character is represented by *two* strange characters.

>>Character set mismatch. DOS EDIT likely assumes the old IBM character set,
>>doesn't it? Notepad likely assumes Windows-1252, Microsoft's deliberately
>>incompatible Latin-1 character set.

>>Ask in comp.editors or a TeX group.

>"*two* strange characters" looks more like UTF-8.

Your display may be assuming yet another character set. Perhaps Notebook
is capable of UTF-8 output. I think a better-behaved document avoids
multi-byte characters if possible, but lots of people choose to output
UFT-8 to pretend to be "modern".

>Perhaps, there is a way to accept UTF-8 in LaTeX.

Really, you need to ask elsewhere on Usenet where you'll find the expertise
you seek.

>Otherwise, I have a Perl script transforming Windows-1252 or UTF-8 or a
>mixture thereof to something else. It does not produce LaTeX input but it
>could produce something that can be transformed to LaTeX input by simple
>editor commands. The script runs now under Linux, and is as well
>transferrable to Windows as any other Perl script -- should in principle
>not be a problem but I have no experience.

>The item is OT here but comp.std.internat has been closed down.

It wouldn't have been on topic in that newsgroup either.

Holger Marzen

unread,
Nov 3, 2011, 4:52:08 AM11/3/11
to
* On Wed, 2 Nov 2011 14:27:55 +0100, Jean-Pierre Coulon wrote:

> A colleague has written a text with accented characters with Notepad under XP.
> How can I include this tex into a LaTeX document? \usepackage[cp850]{inputenc}
> didn't work. Same with [latin1].
>
> When I open the Notepad document with the old DOS EDIT each accented character
> is represented by *two* strange characters.

Could be UTF.

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
0 new messages