I posted this question in stack overflow, but didn't get an answer, I'm trying here to see if I have better luck.
I'm trying to include some Chinese characters in a LaTeX document. I've tried several methods suggested on the web (CJK, XeLaTeX, etc.) and the best results are that some characters are correctly displayed whereas others are replaced by symbols. This is a minimal working example:
% !TEX program = XeLaTeX
% !TEX encoding = UTF-16
\documentclass[UTF8,nofonts]{ctexart}
\setCJKmainfont[BoldFont=FandolSong-Bold.otf,ItalicFont=FandolKai-Regular.otf]{FandolSong-Regular.otf}
\setCJKsansfont[BoldFont=FandolHei-Bold.otf]{FandolHei-Regular.otf}
\setCJKmonofont{FandolFang-Regular.otf}
\begin{document}
Honshu He (红水河)
Yongbei (邕北)
\end{document}
This yields this output (copied from the resulting PDF file):
Honshu He (7EA2??) Yongbei (9095?)
Another minimal example with xeCJK (the results ore similar to those using CJK):
\documentclass[UTF8, nofonts, mathptmx, 12pt, onecolumn]{article}
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\begin{document}
Honshu He (红水河)
Yongbei (邕北)
\end{document}
This time the output is better:
Honshu He (7EA2 水河) Yongbei (9095 北)
I'm in a Mac OS 10.9.5, running TeXLive2-14 (Intel 64), and using TeXShop Version 3.48.1 as the editor. I'm running out of ideas on how to make this work, and your help is greatly appreciated.
%!TEX encoding = UTF-16but UTF-8 encoding. – Leo Liu Dec 11 '14 at 14:19