The following MWE cannot be compiled. You can see the error messages by yourself.
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{CJKutf8}
\usepackage{pst-eucl}
\def\kor#1{%
\begin{CJK}{UTF8}{mj}
#1%
\end{CJK}}
\begin{document}
\begin{pspicture}(7,8)
\pstGeonode[PointName={\kor{지}},PosAngle=90](3,3){A}
%\rput(3,3){\kor{웅}}
\end{pspicture}
\end{document}
PointName cannot accept CJK characters. How to fix it?
\usepackage[utf8]{inputenc}\usepackage{CJKutf8}? And what is the difference between using\usepackage{CJK}... \begin{CJK}{UTF8}{mj}...\end{CJK}and\usepackage[utf8]{inputenc}\usepackage{CJKutf8}...\begin{CJK}{UTF8}{mj}...\end{CJK}? – kiss my armpit Nov 16 '13 at 07:24inputencwithutf8option is useful when you typeset é, ü, etc. in other languages, such as French, Germen. – Leo Liu Nov 17 '13 at 03:09utf8input encoding, which in turn I don't useCJKutf8package but I just useCJKpackage. My question is why do we need to specifyUTF8as the second argument ofCJKenvironment? – kiss my armpit Aug 12 '14 at 18:54CJKpackage need to know the encoding of the source file to process the CJK characters properly. – Leo Liu Aug 13 '14 at 02:46