2

I'm trying to use the 'ẁ' character in my text, however it doesn't show on the right hand side of latex and throws the following error:

Package inputenc Error: Unicode char ẁ (U+1E81)

I tried adding \usepackage[latin1]{inputenc} to the top of my document, which then gave another error telling me to add 'utf8, latin1' to my \documentclass which I tried but this is also not working.

Is there any way I can solve this?

hjalpmig
  • 123

3 Answers3

4

The character is not supported in Latin-1; save your file as UTF-8 and add

\usepackage[utf8]{inputenc}

and also

\DeclareUnicodeCharacter{1E81}{\`w}

Full example:

\documentclass{article}
\usepackage[utf8]{inputenc}

\DeclareUnicodeCharacter{1E81}{\`w}

\begin{document}

Is the character ẁ used in some language?

\end{document}

enter image description here

egreg
  • 1,121,712
  • A great place for finding the char number is https://w3c.github.io/xml-entities/unicode-names.html – Rmano Apr 16 '16 at 18:55
1

You may want to look into using either XeLaTeX or LuaLaTeX to compile your documents. They support utf8 input encoding natively (in fact, it's the only input encoding they support...). Do also make sure you use a font that features the character .

enter image description here

% Compile with XeLaTeX or LuaLaTeX and load a font that contains "ẁ"
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{Latin Modern Roman} ẁ
\setmainfont{Cardo} ẁ
\setmainfont{Junicode} ẁ
\end{document}
Mico
  • 506,678
1

Here is a (non exclusive) list of fonts on CTAN that have this character (it belongs to the series Latin extended additional in the unicode description):

Latin Modern –erewhon –Linux Libertine O – ebgaramond – tex-gyre.

Bernard
  • 271,350