I've tried the solutions from Entering Unicode characters in LaTeX on Overleaf but they are not working.
Attempt 1: When using \usepackage[utf8]{inputenc}:
\documentclass{article}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8]{inputenc}
\begin{document}
To stop the charges, frugal users are advised to click on the ⏻
\end{document}
It throws the error
LaTeX Error: Unicode character ⏻ (U+23FB)
Attempt 2: When trying \DeclareUnicodeCharacter{23FB}{\poweroff}
\documentclass{article}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8]{inputenc}
\DeclareUnicodeCharacter{23FB}{\poweroff}
\begin{document}
To stop the charges, frugal users are advised to click on the \poweroff
\end{document}
It throws the error:
Undefined control sequence.
Attempt 3: When using \usepackage[utf8x]{inputenc}
\documentclass{article}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8x]{inputenc}
\begin{document}
To stop the charges, frugal users are advised to click on the ⏻
\end{document}
It throws the error:
Package ucs Error: Unknown Unicode character 9211 = U+23FB,
Attempt 4: Using \usepackage{fontspec}, see https://www.overleaf.com/read/vkyzfjndxkgm
\documentclass{article}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\begin{document}
To stop the charges, frugal users are advised to click on the {\fontspec{Symbola} \symbol{"1F343}}
\end{document}
It just didn't compile and threw an error:
(fontspec) LuaTeX.
(fontspec)
(fontspec) You must change your typesetting engine to,
(fontspec) e.g., "xelatex" or "lualatex" instead of
(fontspec) "latex" or "pdflatex".
Type <return> to continue.
...
l.45 \msg_fatal:nn {fontspec} {cannot-use-pdftex}



\DeclareUnicodeCharacter{23FB}{\poweroff}is fine but you need to define\poweroffas character from some font, or\includegraphics{...some image, or a tikz drawing or ... – David Carlisle Apr 14 '23 at 16:11\usepackage[utf8]{inputenc}in that case (it is best always remove it, it is the default with pdflatex so not needed, and wrong for lualatex and xelatex) – David Carlisle Apr 14 '23 at 16:13fontawesomepackage has\faPowerOffwhich is maybe similar to what you are looking for. – Jasper Habicht Apr 14 '23 at 16:22fontspec. Change the compiler tolualatex. – rallg Apr 14 '23 at 17:20