GeneralKeyboard character used is undefined

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
brunosmca
Posts: 1
Joined: Tue May 22, 2012 5:27 am

Keyboard character used is undefined

Post by brunosmca »

Hi everyone,

I'm not familiar with latex so my friend just sent me his final graduation work in order to help me to build my one.

The problem is because he built it on linux, and when I'm opening his work with my macos, there are many words with characters problems and when I'm trying to generate a pdf I'm getting this error:

"! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin1'.

See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...

l.123 Management ��
� Part 1: General(Revised)},'' in \emph{NIST Special
? "

So, do I have to configure something on my editor? do I have to use other keyboard definition package? which one? where should I find the one which is currently being used in order to change it?

Sorry for the big post, I'm really confused trying to fix that... it's gonna help a lot use this ready to go template from my friend.

Thanks a lot!
Bruno

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Keyboard character used is undefined

Post by Stefan Kottwitz »

Hi Bruno,

welcome to the board!

As your friend uses Linux, I guess the encoding is UTF-8. So I suggest
  • ensure that your editor uses UTF-8
  • change

    Code: Select all

    \usepackage[latin1]{inputenc}
    to

    Code: Select all

    \usepackage[utf8]{inputenc}
But if you use latin1 encoding in your editor, and just include utf8 parts of your friend's document, there's a possible workaround: you could open the utf8 document (if it's correctly displayed, perhaps in utf8 mode), copy parts of the text, and paste into your latin1 document. Possibly the encoding is respected or changed, respectively.

Stefan
LaTeX.org admin
Post Reply