
這是我的代碼,以 UTF-8 編碼:
\documentclass{article}
\usepackage{polyglossia}
\usepackage[useui]{eforms}
\begin{document}
\textField[\ui{value={Übeltäter}}]{Text}{10cm}{1em}
\comboBox{Combo}{10cm}{1em}{(Ärger)(Übeltäter)(Österreich)}
\end{document}
這是呈現的內容:
http://flyx.org/files/eforms-unicode.png
使用 編譯時xelatex
,我收到此警告:
** WARNING ** Failed to convert input string to UTF16...
為什麼文字欄位可以正確呈現,但組合框的值卻不能正確呈現?兩次都是相同的編碼。在欄位中選擇一個值不會解決編碼問題。
還有額外的問題:這些數字到底是什麼?我沒有在實際文件中找到它們,也無法弄清楚它們來自哪裡。
答案1
我沒有,eforms
但你單獨使用肯定可以得到正確的結果hyperref
。我不知道如何顯示打開的選擇選單,因為任何截取螢幕截圖的嘗試都會失敗或從選單中退出。但是,所有 3 個條目都顯示正確。
\documentclass{article}
\usepackage{polyglossia}
\usepackage{hyperref}
\begin{document}
\begin{Form}
\TextField[value={Übeltäter}, width=10cm, height=1.5em]{Text}\par
\ChoiceMenu[combo, width=10cm, height=1.5em]{Combo}{Ärger,Übeltäter,Österreich}
\end{Form}
\end{document}