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
6
votes
1answer
1k views

Include files with different input encoding

How can I include a "~.tex"-file with a different input encoding? I use UTF-8 encoding in my main file but have to include a file with ISO-8859-1 encoding (sink output of RStudio, see also related ...
1
vote
1answer
549 views

Read csv files with spanish characters

I'm new to latex and I'm trying to work on some tables for my thesis. After some tryouts I've been able to import some CSV tables with the desired format but I'm struggling now with the content. Let ...
7
votes
1answer
180 views

Can I define a fallback character in pdfLaTeX?

I write most of my documents with XeLaTeX. Sometimes, however, i need to collaborate with someone who does not. In these cases, it is generally easy for me to add a pdfLaTeX-specific header: \...
4
votes
1answer
2k views

inputenc Error: Unicode char (U+2028)

When trying to use the inputenc package to enable utf8 characters in my document, I get the error inputenc Error: Unicode char 
 (U+2028) not set up for use with LaTeX. It is triggered by a display ...
0
votes
0answers
29 views

Can I incorporate a \unicode-based formula into TeXShop 3.64?

The Mathematica TeXForm command gives me \text{DifferenceRoot}[\{\unicode{f818},\unicode{f80d}\}\unicode{f4a1}\{(-15 \unicode{f80d}-42) \unicode{f818}(\unicode{f80d})-15 \unicode{f818}(\unicode{...
2
votes
1answer
173 views

Comment Package: Problem when using German Special Character “ß” (Similar to “ss”) [duplicate]

I am preparing a bilingual document and using the comment package to distinguish between the two languages. When I use the special character ß in a comment environment then I get an error message (...
1
vote
0answers
43 views

% sign not working inside tabular [duplicate]

What is wrong with this table? \begin{tabular}{lllll} Firms & Revenues & Shares & Shares in Percentage & HHI \\ Anheusar Busch & 50400092.4 & 0.490059433 & 49.01% &...
1
vote
1answer
236 views

Figcaps and special characters

I'm trying to use the figcaps package in an article to keep all figures at the end of the document. When I compile the following TeX code using pdflatex I get the following error message: ! Package ...
1
vote
0answers
212 views

Encoding Messed Up File

I wish I knew how this happened. Using Texshop, under Preferences, encoding is UTF-8. File contains the following lines in the preamble: \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} When I ...
2
votes
1answer
57 views

Type accented letters directly in tex file, not working

I would like to type accented letters directly in my tex file, and I would like them to be displayed correctly in the output. Neither of the solutions that I found online with inputenc / fontenc work. ...
1
vote
0answers
446 views

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

Good morning everybody, I've used the following file serveral times to create letters. I've never had any issues. But now, out of the sudden, I am getting the following error for each German letter (...
1
vote
1answer
614 views

Encoding problem with accents and inputenc package

I have this problem, it seems i'm doing something wrong while writing letters with accents like "è", on that line the compiler says: package inputenc Error: unicode char \u8:èun not set up for use. ...
0
votes
2answers
175 views

! Package inputenc Error: Unicode char �zq (U+EC) - web site

Im getting the following error message, due to my bibtex source ! Package inputenc Error: Unicode char �zq (U+EC) I know it is because somewhere, some how some a special m!@$$êr character has ...
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 ...
0
votes
1answer
590 views

Why does applemac inputenc not work anymore for umlauts?

In order to type umlauts in latex (with Texshop) like e.g. 'ä' I used to be able to just add \usepackage[applemac]{inputenc} at the beginning of my .tex file and I'd be able to compile umlauts. ...
1
vote
0answers
86 views

Strange First Page Generated by \usepackage[utf8]{inputenc}

I started learning LaTex ca 1 year ago at sharelatex.com. There it was said that the package \usepackage[utf8]{inputenc} should always be included in your document preamble if unsure. However, I have ...
2
votes
1answer
133 views

Special characters in a lstlisting

I'm trying to paste my SQL code but my spaces are being interpreted as special chars and I get a weird character between words. Here's my code: \begin{lstlisting}[ language=SQL, ...
9
votes
2answers
726 views

Why this UTF-8 error is solved with a simple \clearpage

An example is shown below, which also includes a description of the problem: \documentclass{book} \usepackage{CJKutf8} \begin{document} \begin{CJK*}{UTF8}{gbsn} Some Chinese text. 一些中文 \section{...
5
votes
1answer
13k views

Package inputenc Error: Unicode char - {U+2010)

I am encountering the following error and have no idea where to find the solution; Package inputenc Error: Unicode char ‐ (U+2010) (inputenc) not set up for use with LaTeX. See the ...
1
vote
2answers
247 views

Importing phonetic characters from a .txt file fails with inputenc

I'm trying to import a dictionary I made in Toolbox (90's linguists software). I currently have the dictionary in a .txt file that LaTeX should be able to reproduce with a style file. In the .txt ...
2
votes
1answer
183 views

Problem with Icelandic characters in Beamer

I am doing a Beamer presentation based on an article, so I do a lot of copy and paste from one document to another. Basically everything is working fine, but for some reason, the Icelandic special ...
1
vote
1answer
1k views

why neither \bf nor \textbf works in this?

I have used \bf, \bfseries and \textbf for some particular texts in my answer sheet yet I am unable to detect what makes these fail to work in this document. Could you help to find it? \...
0
votes
0answers
255 views

How to add a UTF8 arabic or farsi symbol to Texlive?

the following MWE gives a error \documentclass{article} \usepackage{etex} %\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[LFE,LAE,OT1]{fontenc} \usepackage[farsi,arabic]{babel} \...
0
votes
1answer
214 views

inputenc error with romanian diacritics [closed]

I am using this packages to write with Romanian diacritics: \usepackage[T1]{fontenc} \usepackage{ucs} \usepackage[utf8]{inputenc} \usepackage[romanian]{babel} The problem is that it worked before ...
3
votes
2answers
240 views

What about \cyrdash in EU1 and EU2 encodings?

cyrdash is defined in T2A, T2B, T2C and some other legacy encodings but seems to escape from EU1 (xetex) and EU2 (luatex) encodings. cyrdash should, by idea, print something intermediate between \...
1
vote
0answers
643 views

Problems with french accents (again)

It has been two years since I have started using Latex (on a Mac), and up to now I have written my text without worrying about the possible output (as if it was a WYSIWYG), and at the moment of ...
8
votes
1answer
454 views

\input a file whose name contains accented letters

When I use LaTeX in a Windows system I can easily use the \input command with a file whose name contains accented letters, but in a Linux system I get the message ! LaTeX Error: File `Préambule....
0
votes
1answer
53 views

Only the main part of the document has the right encoding

Been having this problem for a bit and haven't been able to short it out whatever I do. I'm writing my thesis in LaTeX which is writen in Spanish, therefore it needs to have accentuation in some ...
2
votes
0answers
41 views

biblatex and special character \'{\i} [duplicate]

I want to cite an article from a spanish author having the character í in his name. MWE: \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{bib1.bib} @...
1
vote
2answers
1k views

listingsutf8's option inputencoding=utf8/latin1 leads to latin1.def to be read each time a listing is used

Edit: inputencoding=latin1 option initially written should have been inputencoding=utf8/latin1 If the listingsutf8's option inputencoding=utf8/latin1 leads to latin1.def file to be read each time a ...
2
votes
1answer
94 views

§ compatibility between xelatex/lualatex+{fontspec} and pdflatex+[utf8]{inputenc}

I'm having trouble with some macros and the § symbol. I can get things working with xelatex/lualatex, but not with pdflatex. Here's my code: \documentclass{article} \usepackage{fontspec} % <- ...
2
votes
1answer
189 views

Input difficulties with \usepackage{devanagari}

I am using the standard miktex package \usepackage{devanagari} however, using the same input examples as written in the file manual produces very different results, i.e. there is a duplication of ...
1
vote
1answer
463 views

Which encoding used in LaTeX sources to convert PDF file accents to the doc format correctly?

I have the following configuration file in my LaTeX source: % !TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{...
6
votes
1answer
2k views

European Accents not showing correctly [duplicate]

When i type " é " directly with the appointed key, or use a key combination of "´ + e" (where I press the ´ first, the character doesn't show up, and then I pres e and the accent appears) it doesn't ...
1
vote
0answers
118 views

inputenc and bibliography [duplicate]

I have this document, with problems building my bibliography \documentclass[12pt, letterpaper]{article} \usepackage[english, spanish]{babel} %\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
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 ...
17
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 ? \...
2
votes
1answer
150 views

Will I get trouble if I use packages with different encodings?

Will I get trouble if I use packages with different encodings? I'm using TeXShop, with a package in Western (ISO Latin 9), but the template file I am using with it is in Western (Mac OS Roman). (...
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? ...
0
votes
1answer
186 views

How to enable unicode within comment section? (package “comment”) [duplicate]

In following MWE, letters with an accent that are within the personalized comment environment are generating following errors while compiling with pdflatex: ! Package inputenc Error: Unicode char �...
7
votes
1answer
1k views

How to get Unicode characters U+2713 and U+2717 to display in pdfLaTeX?

My document has \usepackage[utf8]{inputenc} in its preamble. I am trying to use the characters U+2713 (check mark) and U+2717 (ballot X), but I get the error: ! Package inputenc Error: Unicode char \...
0
votes
0answers
111 views

Keyboard character used is undefined

My reference list include letters from different languages, such as á, ö, 第. I get ! Package inputenc Error: Keyboard character used is undefined EDIT [Copied from deleted answer by cfr as ...
0
votes
0answers
109 views

Why must I use the latin2 encoding for Hungarian? [duplicate]

I'm writing a UTF-8-encoded English document that contains a substantial amount of text in Hungarian (and a few other languages). When I try to load the Hungarian language patterns in babel using ...
3
votes
2answers
356 views

What input encoding do I have to choose if I have an 'ɛ' in a reference title?

I'm trying to cite this paper in my assignment using bibtex. It has an 'ɛ' in the title and this does not get represented correctly in my pdf. Umlauts, which I also have, are not a problem. So far I'...
0
votes
2answers
741 views

Encoding problem when generating umlaut code from batch [closed]

This is my setting. I have a main tex-file: % TextTest.tex \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} % in order to be able to write åäö. \input{name.tex} \begin{document} ...
0
votes
1answer
864 views

Latin1, utf8 with Texmaker

I state that I have read many discussions about my problem but have not yet managed to solve. I 'the first time I use LaTeX and as editor I chose Texmaker. I'm writing on Windows 7 64bit. I created a ...
4
votes
0answers
236 views

When and why should I use % !Mode:: “TeX:UTF-8” directive?

I often see the following lines are included at the beginning of the tex files: % !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode % !Mode:: "TeX:UTF-8" Directives started with % !TEX are ...
3
votes
0answers
72 views

Unrecognized special character with comment package [duplicate]

Why are the character with accent not recognized ? \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{comment} \...
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 ...
13
votes
1answer
335 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, ...