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
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 ...
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 ...
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} \...
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?
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 ...
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: ...
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 é (...
28
votes
1answer
888 views

TeXLive and MikTeX behave differently in handling BOM in listing

This is a followup to a comment of mine posted in 2012. In short, MikTeX does not remove the leading BOM from listings, but TeXLive does, as shown in the following images. The leading BOM effect can ...
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 ...
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’...
23
votes
1answer
417 views

Any 7-bit way to write ä (umlaut-a) without "

I'm using a batch file to generate a small LaTeX input file. I cannot use proper umlauts, but the batch file has problems with " as text and I want to produce the word März. Is there any way in ...
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?
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
1answer
2k views

Unicode in PDF Metadata

There are several ways of setting PDF meta data when compiling LaTeX documents. The two most popular ways are arguably via pdfinfo, \pdfinfo{ /Author (Erwin Schrödinger) } and hyperref, \...
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]{...
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 ...
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 ...
19
votes
3answers
3k views

How is a mathematical formula represented in PDF?

If I compile a .tex file to a PDF, how will the PDF encode a mathematical formula like f.ex. the integral below? Is it a bitmap? Or how else is it encoded? And how can I extract the formula from a PDF ...
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 ...
18
votes
2answers
35k views

How to easily use UTF-8 with LaTeX?

It's probably a stupid question, but I cannot find any easy answers online, and the answers are sometimes contradictory. I am writing a document that uses a few strange alphabets. I want to use some ...
17
votes
2answers
2k views

Why characters UTF-8 encoded are ISO-8859-1 encoded when written in an external file

For an UTF-8 encoded file as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \newwrite\outtmp \immediate\openout\outtmp=out.tmp % \begin{document} \newcommand{\...
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 ? \...
16
votes
2answers
2k views

How to write a letter “ģ”

In my language we use the letter "ģ" representing LATIN SMALL LET­TER G WITH CEDILLA with code U+0123. How can I write it with pure latex? Solution Ok I got what I wanted, thanks to WriteLatex utf-8 ...
16
votes
1answer
5k views

Migrating from pdfTeX to LuaTeX: Problems with reproducing output for legacy projects

I'm currently analyzing and evaluating a migration process from pdfTeX to LuaTeX for our current TeX workflow. With LuaTeX being a fork of pdfTeX and packages like luainputenc at hand it seemed ...
15
votes
4answers
4k views

Using package minted with non-english characters

I would like to use LaTeX package minted to colorize my c and Cuda code. I need to write comments in the code in czech. I use package inputenc with utf-8 and czech characters (ěščřžýáíé) work good in ...
14
votes
2answers
7k views

Error “Please insert PRERENDERUNICODE”

I meet a subtle problem. My simplest code is as follows. I am working in Win 7-32bit, my editor is WinEdt 7.0 (Build: 20120125 (v. 7.0)), saved as UTF-8, compiled with pdflatex(MiKTeX2.9). \...
14
votes
1answer
757 views

In tex file ascii characters only : if so should I encode the file in ascii? Or is utf-8 better used anyway?

This is a best practices question. Should I encode tex files in ascii or should I use utf-8? Is either preferred for a reason (ANY reason) in the case where ascii characters and nothing else appear ...
14
votes
1answer
4k views

biber - warning about non-ascii characters

Biber gives me the following warning: WARN - The entry 'csorgo__sandor:10' has characters which cannot be encoded in 'ascii'. Recoding problematic characters into macros. Is this anything to worry ...
14
votes
1answer
22k views

Problem with foreign characters

I am writing a report in LaTeX from a LaTeX template given in my university. The text is in English but I need to have some Swedish characters there was well like ä, ö, å etc. Now the problem is that ...
14
votes
1answer
6k views

Glyph not defined in PD1 encoding, removing `\H'

I've got the message when I try to convert my project into pdf: Glyph not defined in PD1 encoding, removing `\H' on input line 73. I use MiKTeX 2.9 with TeXnicCenter 1.0. What does input mean? My ...
14
votes
1answer
569 views

Encoding of non-ASCII characters (Umlauts) in \jobname

I need to parse \jobname to extract some metadata (such as the subject of a letter) that is encoded in the filename of the .tex file. The filenames are not restricted to ASCII, but maybe any UTF8 ...
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 ...
13
votes
2answers
1k views

Encoding to be able to search pdf

I am writing a document in Czech. I want To be able to fully search the pdf (at the moment I can search only for words with non-Czech characters, but I want to be able to search with Czech characters ...
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 ...
13
votes
1answer
333 views

Do you teach LaTeX? How do you fight with encoding problems?

Let's suppose your language is not English but another European language with Latin alphabet that uses special characters like á, ç, ñ, etc. Now, let's suppose you want to prepare some documents, ...
13
votes
1answer
1k views

How to work with two encodings?

I'll try to explain my problem here. I know that there are many posts dealing with this but I'm still confused. We have many files from different machines with different systems. The important is: ...
13
votes
1answer
168 views

What is considered a token for non-standard input encodings?

When I use an input encoding to (La)TeX that allows me to directly input characters such as é and ä (such as by declaring \usepackage[utf8]{inputenc}), how is a token defined? Specifically, is it ...
12
votes
2answers
7k views

Biblatex encoding

I've got a large document which I wrote some time ago. It contains a bibliography for which I use biblatex: \usepackage[style=authoryear-comp, maxnames=1, doi=false, url=false, backend=bibtex8]{...
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 ...
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} \...
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 ...
11
votes
2answers
8k views

German Umlauts in BibTeX

I have the following BibTeX source @INPROCEEDINGS{Lincke2008, author = {Rüdiger Lincke and Jonas Lundberg and Welf Löwe}, title = {Comparing software metrics tools.}, booktitle = {ISSTA}, ...
11
votes
1answer
22k views

Problem after copying text: inputenc Error: Unicode char \u8:‭ not set up for use with LaTeX

I have a LaTeX document, that can be compiled without any problems, but after copying some text into the document, I'm getting a huge amount of errors that say: ! Package inputenc Error: Unicode ...
11
votes
1answer
452 views

How is the TeX engine informed of the OS's end-of-line marker and file encoding?

The TeX engine processes the input file on a line-by-line basis (The TEXbook, p. 46). The first line will be read from the file, undergo some pre-processing (see below), and then the engine will start ...
11
votes
1answer
978 views

why “ff” displays strange using unicode encoding vs. iso-8859-1 in HTML output from tex4ht?

I understand that one should (?) be using UNICODE for html. But using this with tex4ht, always makes "ff" look strange. Why does this happen for "ff"? and based on this test below, should one instead ...
11
votes
1answer
411 views

What benefits can I get from using utf-8 encoding instead of cp1251 for Russian?

I'm preparing to make a small package for typesetting math textbooks in Russian, under Windows (MikTeX distribution). What input encoding should I prefer? I've always been using cp1251, but as I ...
11
votes
1answer
2k views

How to change a .tex file's input encoding system (preferably to UTF-8)?

I've been trying to use the hyphenation patterns embedded in the file dehyphtex.tex, which is part of the hyphen-german package. Unfortunately, the file seems to be encoded in a system that's neither ...
11
votes
1answer
4k views

utf8 input encoding with biblatex (biber and bibencoding=utf8)

I have a document with Cyrillic, English and German. All worked well so far. But now I need a special Character in the bibliography.bib file. Its an \.{E} If I just put that in there it gives me the ...
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: ...
10
votes
1answer
2k views

Interpreting unicode ², ³, etc… characters in math mode

Short question: Is there some font encoding or other trick that would allow the unicode character ² (exponent 2) to be correctly interpreted by LaTeX, notably in math mode (i.e. translate it ...