Questions tagged [input-encodings]

{input-encodings} is about the various input code pages like latin1 or utf-8 ({unicode}) which interpret the sequence of numbers underlying text files and map each number to a certain glyph (character). A popular package for pdfLaTeX is inputenc.

Filter by
Sorted by
Tagged with
173
votes
4answers
135k views

fontenc vs inputenc

I just don't seem to get it. So I come from the german speaking part of Switzerland and naturally I need ä ü ö a lot when I write german texts. So in LaTeX I have the option to go via "a "u "o which ...
194
votes
6answers
167k views

utf8x vs. utf8 (inputenc)

I normally use \usepackage[utf8]{inputenc} for my latex document but on this site i saw a lot of code with \usepackage[utf8x]{inputenc}. What are the differences between the 2 options ? Is there one ...
32
votes
7answers
5k views

LaTeX baffled by BOM---Unicode's byte order mark.

Unicode applies the convention of using a byte order mark as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: ...
13
votes
4answers
1k views

Input encoding error after upgrading from Biber 1.9 to Biber 2.1

Under biber 2.1 my biblatex produces input encoding errors. The same procedures worked smoothly under biblatex 2.9a/biber 1.9, now that I upgraded to biblatex 3.0/biber 2.1 I get the following message ...
38
votes
8answers
28k views

How do I change the encoding of my files?

Back in the old days, before I left the hallowed shores of my native country, I didn't much care what encoding my files were in. ASCII was enough for my great-great grandfather so it was enough for ...
99
votes
11answers
246k views

inputenc Error: Unicode char \u8: not set up for use with LaTeX

This is with ref to my previous question Package clash in multilingual report. \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
27
votes
3answers
4k views

Using non ASCII characters in author names and titles within hyperref pdfinfo

I am trying to generate a PDF file (using pdflatex) with hyperref references; both the title and author should be visible as pdf properties, and both contain accents or non us-ASCII. The rest of the ...
19
votes
1answer
3k views

Automatically change é to \'e – most convenient setup for accented letters?

I assume this is really basic question, I'm new to LaTeX, I read a first step tutorial to get ready to write some documents but I couldn't answer my own question at this time and I really don't know ...
9
votes
2answers
18k views

TeXShop doesn't remember file encoding

I am aware that this might not be the ideal place please move/close this if so. So since yesterday I run into the following problem: I use \usepackage[T1]{fontenc} and \usepackage[utf8]{inputenc} in ...
12
votes
1answer
3k views

Why doesn't LaTeX hyphenate words containing accents, e.g. “développement”? [duplicate]

In this MWE, Latex doesn't hyphen the word "développement" and prefer to create a HUGE hbox. \documentclass[a4paper,12pt,dvipsnames]{report} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \...
5
votes
4answers
895 views

Which inputenc for these Latvian letters?

I type in English but I need the following few Latvian letters. Minimal case \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} diņš \end{document} which gives di only. How can ...
24
votes
1answer
3k views

In which order should I load inputenc and fontenc?

When I’m using pdfLaTeX, my preamble usually contains \usepackage[utf8]{inputenc} and \usepackage[T1]{fontenc} Should these two be loaded in any particular order? What problems could arise if they’...
22
votes
3answers
5k views

Do I need fontenc and inputenc

My question feels like a duplicate of: fontenc vs inputenc, but in that question the OP uses German and non-ascii characters. I speak and write in English exclusively. My keyboard is the standard en-...
22
votes
8answers
48k views

utf8 or latin1 encoding – German

\usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc} I write in German if that matters. Pro and contra?
9
votes
1answer
7k views

Problem copying text from pdf - spaces being stripped

I have the following minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} é canção \end{document} I need to use the utf8 argument ...
1
vote
1answer
125 views

Either batch transcode (character sets) a whole list of image filenames … or use a character encoding conversion function within the main Tex file?

I am very excited about this code by User @egreg which I will be using to display images of the stroke order of a Chinese character whenever you hover over a certain character. I changed the code a ...
28
votes
3answers
4k views

French accents in \hl from soul package

I'd like to use the \hl command from the soul package in a French text. However, it does not work whenever the part to highlight contains French accents (e.g.: \hl{é}). I could use \'e instead of é (...
20
votes
2answers
4k views

Can we stop recommending fontspec as first choice in case lualatex is used?

This question may belong on Meta, please move it in that case, I'm not sure. This answer made me think again why almost everybody is recommending loading fontspec in case lualatex is used. I see just ...
16
votes
3answers
10k views

Why does inputenc abandon so quickly under “utf8 based engines”?

Why do I need to do the extra work starting with \ifdefined in order to get my French guillemets correct in the pdf output, when using xelatex with a source specifying the use of T1-encoded fonts ? \...
12
votes
2answers
3k views

utf8 inputenc vs. babel

I'm using TeXLive 2014 on FreeBSD. Every LaTeX-files produce the following warning: LaTeX Warning: Please use \usepackage[latin2]{inputenc} with \usepackage[magyar]{babel}. "Magyar" is ...
8
votes
3answers
15k views

How to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?

NOTE : this problem is closely related to the one here, but I can't seem to adapt it to my situation, since I don't know where the names of these characters (e.g.,\textvisiblespace, \textcompwordmark ...
8
votes
2answers
546 views

How to put an acute on an i using Biber: issues with “\'{\i}”

I use some packages with require utf8. Here is the main file: \documentclass[a4paper,titlepage]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[american]{babel} \usepackage{...
7
votes
2answers
3k views

Special characters in input file

I want to have my sections in independent .txt files in the folder of my assignment. So I use \input{text.txt}. The problem is, I write in Danish and we have the 'æ' 'ø' 'å' characters that aren't ...
6
votes
1answer
12k views

How to change the text encoding of a TeXnicCenter project? [duplicate]

I was trying to collaborate with another person on a LaTeX project. Unfortunately we have a text encoding problem. He cant use my ANSI coded files. Now I need to change all my files to UTF8. Is there ...
3
votes
2answers
212 views

How to have this Latvian letter “s” with top “nose”?

This discussion is an extension of this answer but in Beamer -documentclass and with XeLaTeX. I can get some variants working there in Pdflatex, see Christian's answer but with bad output and I do ...
0
votes
1answer
330 views

!package inputenc error unicode character ​(u+200a)

im currently writing my bachelors thesis and while inserting some cites and adding something to my bib file the above mentioned error occured. i tried to "fix" it by removing all the steps prior to ...
47
votes
4answers
5k views

What is the difference between font encoding and input encoding?

From list of obsolete packages and classes we must avoid, I found 2 terminologies, i.e., font-encoding and input-encoding. What is the difference between them?
13
votes
4answers
82k views

“ö ü ä ß” in Latex (Mac, German, TeXShop) [closed]

It sounds simple but I have a really heavy issue with the "ö ü ä ß" in Latex. I use a template from my university, i have a mac and i use TeXShop if that matters. Within there is a packages.tex with ...
10
votes
5answers
7k views

No simple UTF8 support in latex?

The following should look good in your browser, AND compile in Latex looking beautiful right? \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} UTF-8 test: \begin{verbatim} logic: ...
11
votes
2answers
3k views

How can I get utf8 character

I want to make cross references for sections to be symbols but after using the description given I got error report saying keyboard character used is undefined in inputencoding 'utf8'. What might be ...
9
votes
1answer
9k views

Encoding error when changing from LaTeX to XeTeX engine in Emacs AucTeX

The following MWE works fine when compiling with the LaTeX engine (AUCTeX 11.86) \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \begin{document} ...
19
votes
4answers
13k views

Is there any reason to use inputenc?

My LaTeX text editor is GNU Emacs 25.1.1, which encodes text files in UTF-8. Is there any reason to specify \usepackage[utf8]{inputenc} in the preamble? Even if I migrate to a different computer ...
9
votes
2answers
1k views

best practice international template

I would like to have a template which can be internationalised (i.e. is suited for latin script languages) and uses the microtype package. I suppose that we therefore need the following packages: ...
3
votes
1answer
3k views

How to encoding of Lyx LaTeX output without Lyx adding inputenc declaration to preamble

I want to specify encoding that is used by Lyx when it generates LaTeX source for preview or export. That is not a big problem Document->Settings->Language->Encoding->Other->Select encoding from combo ...
8
votes
4answers
4k views

OS X: umlauts in UTF8-NFD yield “Package inputenc Error: Unicode char \u8:̈ not set up for use with LaTeX”

After switching to OS X one of the first things I had to learn the hard way is that many non-ASCII characters, such as the German ü can be encoded in (at least) two different forms in UTF8: U+00FC (...
6
votes
4answers
8k views

German character not rendered to pdf

I just started using LaTeX, and need to use the character "ü". I already have this in main file : %%% Sprach- und zeichensatzspezifische Pakete \usepackage[latin9]{inputenc} \usepackage[T1]{fontenc} \...
21
votes
2answers
21k views

How can I tell LaTeX that an \input file is in a different encoding from inputenc?

I'm currently writing a .tex report with my wife. She's on a Windows machine and I'm running Linux over here; we've decided to encode our report in ISO-8859-1 (i.e., we use \usepackage[latin1]{...
8
votes
1answer
3k views

How do I prevent LyX from loading inputenc?

In my (out of the box) configuration of LyX, the line \usepackage[latin9]{inputenc} is inserted in the generated .tex file by default. This makes it impossible for me to set different options (e.g.,...
7
votes
1answer
1k views

Keywords with spaces in Listings

I want spaced keywords in listings (that is, keyword, with spaces in between). Now, there are some questions in this site already answered, like this one, where the official answer is that “it is not ...
6
votes
2answers
16k views

how to solve a Unicode char' (U+301) error?

I have a problem within ShareLaTex. I copied a reference from biblatex and pasted it into my bib file and the ignored command is author={Ran{\v{n}}ik, Jk{\v{r}}{\n}́} which should generate I get ...
4
votes
2answers
3k views

Using \c{e} and other special characters in .bib files with pdflatex+biblatex+biber: How to avoid Package inputenc Error?

I use Mendeley to manage my bibliography and have it automatically update .bib files. Unfortunately, this often leads to the "Package inputenc Error" when compiling. I narrowed my problem down to ...
4
votes
1answer
6k views

Which encoding should I use with TeXShop on a Mac?

TeXShop seems to default to 'Western (ISO Latin 9)', but a template I've been using is defaulting to 'Western (Mac OS Roman)'. I'm using a package Which encoding should I use with TeXShop on a Mac? ...
8
votes
1answer
7k views

How to change encoding in TeXnicCenter 2.0?

It is not a duplicate of How do I change the encoding of my files? or How to change the text encoding of a TeXnicCenter project?. I haven't found an answer there. Is there any possibility of changing ...
8
votes
3answers
787 views

\edef containing utf8 umlaut characters

Is it somehow possible to have utf8 characters (e.g. german umlauts) inside \edef ? The following example document behaves fine if the umlaut is given directly as argument like \convertTest{Müller}. ...
8
votes
3answers
439 views

input tokens through the unicode position

With luatex I can inject tokens with a command through their unicode positions (see the following example). I'm wondering if this could be done with pdflatex too. It doesn't need to have all the ...
5
votes
1answer
790 views

UTF-8 encoding and Notepad with LaTeX

I have written some LaTeX commands in a separate file, say foo.tex and include them in my LaTeX document. Only after I edit foo.tex with Notepad (default editor in Windows), I get the following error ...
3
votes
1answer
382 views

How to \input{} files with Unicode names?

I work in Linux with the latest TeX Live. The system encoding is UTF-8. It is also the default editor encoding in my TeXstudio 2.12.8. I have figures in files like σ_1_μ_02_per_5.tikz, and I included ...
3
votes
1answer
1k views

Problem with Unicode in LaTeX editor (LEd)

I have an UTF-8, polish text in .tex file. When I open it with my LEd (LaTeX editor), it shows ok (all characters can be seen). But when I try to compile it, I get error: Package inputenc Error: ...
3
votes
1answer
1k views

Special characters doesn't work with \usepackage[utf8]{inputenc}

I have a problem with LaTeX on my mac. This is my code: \documentclass[a4paper, 12pt, norsk]{article} \usepackage[norsk]{babel} \usepackage[utf8]{inputenc} \title{Syrehydrolyse av polysakkarider og ...
2
votes
1answer
2k views

UTF characters in listings

I use lstlistings for code and a lot of special characters can be displayed with literate. See my MWE \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...