# [Tex/LaTex] Error while printing chinese character

cjkerrorsunicode

I am printing a document with Chinese and getting some errors. Below is a MWE with the character causing problems.

\documentclass[11pt,table,a5paper]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage{CJKutf8}
\usepackage[english,russian]{babel}
\begin{document}
\begin{CJK*}{UTF8}{gbsn}
塞
\end{CJK*}{UTF8}{gbsn}
\end{document}


This is the error message:

Error:
! Font C70/gbsn/m/n/10.95/f9=gbsnuf9 at 10.95pt not loadable: Metric (TFM) file
relax


How can I fix this problem?

For Chinese, you can read this first:

How does one type Chinese in LaTeX?

The CJK symbol 塞(U+F96C) you want to typeset is “CJK COMPATIBILITY IDEOGRAPH”. It is rarely used for Chinese or Japanese documents, but for Korean. So most Chinese fonts (including gbsn installed on TeX distributions) do not have this symbol.

I don't know what you want actually. If you just want to typeset 塞(U+585E), it is OK to use:

% pdflatex or latex
\documentclass[11pt]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage{CJKutf8}
\usepackage[english,russian]{babel}
\begin{document}
\begin{CJK*}{UTF8}{gbsn}

\end{CJK*}
\end{document}


But if you really need 塞(U+F96C) for Korean, you have to use a proper font for this symbol. Say, use a Korean font

\documentclass[11pt]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage{CJKutf8}
\usepackage[english,russian]{babel}
\begin{document}
\begin{CJK*}{UTF8}{mj}
塞 for Korean
\end{CJK*}
\end{document}


You can also use XeLaTeX and a font from your OS. On Windows, for example,

% xelatex
\documentclass[11pt]{article}
\usepackage{xeCJK}
\setCJKmainfont{Batang}
\begin{document}

\end{document}


BTW, this might be helpful if you need to typeset rare symbols:

high and low CJK codepoints in a single XeLaTeX document