Texmaker and TeXstudioCharacter encoding on Ubuntu

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
luis
Posts: 14
Joined: Wed Dec 30, 2009 9:03 pm

Character encoding on Ubuntu

Post by luis »

Hello everyone,

I'm trying to create a document in portuguese with Texmaker 1.9.2 on Ubuntu 9.10. The document header is as follows:

\documentclass[10pt,a4paper,notitlepage, portugues]{report}
\usepackage[latin1]{inputenc}
\usepackage[portuges]{babel}

Texmaker is configured to use the system's encoding but all accentuated characters are being replaced by other characters. For instance if I insert my name it gets printed as "LuÃs" instead of "Luís".

Strange thing is, if I save the exact same file with another editor like gedit and then run pdflatex in the command line myself all accentuated characters are printed as they should.

I tried changing Texmaker's encoding to UTF or ISO but the results are always the same. What may be wrong?

Thank you,

Luís

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Character encoding on Ubuntu

Post by frabjous »

Did you try with:

\usepackage[utf8]{inputenc}

or

\usepackage[utf8x]{inputenc}

?

Doesn't make much sense to use latin there, if TeXmaker is saving in UTF-8 (which after all is the default encoding for most things on Ubuntu).
luis
Posts: 14
Joined: Wed Dec 30, 2009 9:03 pm

Re: Character encoding on Ubuntu

Post by luis »

That did it frabjous, thank you.

Could you explain the difference between "utf8" and "utf8x"?

Best,

Luís
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Character encoding on Ubuntu

Post by frabjous »

See page 3 of the inputenc documentation.

I guess there's also a newer inputenx package, but I haven’t really tried that myself, nor do I know what the difference is.
Post Reply