\documentclass[12pt,a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lmodern}

\setlength{\parindent}{0pt}

\makeatletter
\newcommand*{\test}[1]{%
  \begingroup
    #1 %
    % print the corresponding LaTeX code:
    \def\x{#1}%
    \edef\x{\expandafter\strip@prefix\meaning\x}%
    \texttt{\x}%
    \par
  \endgroup
}
\makeatother

\newcommand*{\Family}[1]{%
  \fontfamily{#1}\selectfont
  \subsubsection*{Font family: #1}
}

\begin{document}

\Family{cmr}

\test{\textcircled{w}}
\test{\textcircled{\raisebox{-1.5pt}{8}}}

\Family{lmr}

\test{\textcircled{w}}
\test{\textcircled{\raisebox{-1.5pt}{8}}}

\end{document}
