Fonts & Character Setsinputenc error: Keyboard character used is undefined

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
zooonk
Posts: 7
Joined: Sun Dec 27, 2009 9:55 pm

inputenc error: Keyboard character used is undefined

Post by zooonk »

Hi!
I have set up a glossary with 'glossaries' and 'xindy'. First some parts of my preamble. Use: Miktex / Texnic Center

Code: Select all

\usepackage[latin1]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{babel}
...

Code: Select all

\usepackage[xindy]{glossaries} % 
\glossarystyle{listhypergroup}
\GlsSetXdyLanguage{german-duden}
\GlsSetXdyCodePage{latin1}
\makeglossaries
\loadglsentries{glossar}
I get the following error (12 times with different numbers in the glsnumberformat{}):
! 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.
...
1.92 ...etentrycounter{page}\glsnumberformat{63}}}
I think there are some non-latin characters in my glossary-files. the error appears not before i run 'makeglossaries', so the wrong characters should be in the glo- oder gls- file which are created by 'makeglossaries' (tried makeindex AND xindy).

Has anybody an idea how to find those characters? Or about other causes?

Thanks,
Marco S.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
c.mafla
Posts: 19
Joined: Sat Aug 02, 2008 1:20 am

Re: inputenc error

Post by c.mafla »

I have the same error. And so far I couldnt find any strange character.
rf
Posts: 21
Joined: Mon Jul 20, 2009 5:27 pm

inputenc error: Keyboard character used is undefined

Post by rf »

zooonk wrote:Hi!
! 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.
...
1.92 ...etentrycounter{page}\glsnumberformat{63}}}
I think there are some non-latin characters in my glossary-files. the error appears not before i run 'makeglossaries', so the wrong characters should be in the glo- oder gls- file which are created by 'makeglossaries' (tried makeindex AND xindy).

Has anybody an idea how to find those characters? Or about other causes?
the line number tells you what line the character is on (92 in this case).

i wonder whether xindy's producing utf-8 output.

i've never actually used xindy, but i can't find anything relating to output encoding in the doc, so i guess you need advice from someone who actually _knows_ xindy.
jaf
Posts: 1
Joined: Wed Jan 19, 2011 5:58 pm

Re: inputenc error

Post by jaf »

Hi!
I don't know if it could be an help! Anyway I had the same problem, inside my bibliography! But i made some cut and paste from internet... So some characters also if were visible as usual were not compatible with the inputenc package.
In the end, I solved the problem simply rewriting those lines.
And now it works with any error!
Bye
gkaragou
Posts: 1
Joined: Wed Mar 14, 2012 4:57 pm

Re: inputenc error

Post by gkaragou »

Hi,

Indeed, had the same problem. I got a warning about a character in the text, but the problem was in the references. I cleaned my bib file and now the error is gone. Especially watch for urls that can contain underscores.

Thanks for the help!
toloachero
Posts: 1
Joined: Sun Dec 02, 2012 6:15 pm

Re: inputenc error: Keyboard character used is undefined

Post by toloachero »

yup, bib file...
if you are using latin1, look for
´ and “ ”, and change it to
' and " ", respectively.
o3hq
Posts: 3
Joined: Sun Nov 14, 2010 6:51 pm

Re: inputenc error: Keyboard character used is undefined

Post by o3hq »

I had the same problem and then I replaced both packages for

\usepackage[applemac]{inputenc}

(I have a Mac), and now it works. I hope it helps.
Post Reply