I posted an answer about including Unicode into pdflatex documents (https://tex.stackexchange.com/a/399571/81006), but in fact this answer (while working) demonstrates problems with xelatex (on Windows 7).
Summary: xelatex chooses a different font than the installed on Windows font.
Running this example through xelatex
\documentclass[multi=my,crop]{standalone}
\usepackage{pgffor}
\usepackage{fontspec}
%\setmainfont{DejaVu Sans}
\setmainfont{Symbola}
\begin{document}
smilie/,ghost/,pumpkin/.
\end{document}
On the other hand, in Symbola the same string in Character Map (and any other Windows application I checked) produces:
; note that a different rendition of GHOST is chosen. Inspecting the installed TTF file of Symbola with a font editor shows the latter glyph for HOST, and no variation selectors.
Moreover, if I change commenting in LaTeX file to choose DejaVu Sans instead of Symbola, then only rectangles are shown instead of characters. (While DejaVu Sans does not have GHOST and JACK-O-LANTERN, it does have SMILIE.)
Question: how to find which exactly font (file?) was used by xelatex? (I suspect that it picks up one of the older version of DejaVu/Symbola which are left in %SYSTEMROOT%/Fonts by the Windows’ font installation subsystem when newer versions of a font are installed.)

fontspec:\setmainfont{Symbola_hint.ttf}[Path = /usr/share/fonts/truetype/ancient-scripts/]– David Purton Nov 04 '17 at 03:47