Texmaker and TeXstudio ⇒ Character encoding on Ubuntu
Character encoding on Ubuntu
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Character encoding on Ubuntu
\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).
Re: Character encoding on Ubuntu
Could you explain the difference between "utf8" and "utf8x"?
Best,
Luís