[Tex/LaTex] Package inputenc Error: Unicode char ẁ (U+1E81)

characterssymbols

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?

Best Answer

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