XeTeX** WARNING ** Failed to convert input string to UTF16...

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
bramp
Posts: 10
Joined: Mon Aug 25, 2008 5:33 pm

** WARNING ** Failed to convert input string to UTF16...

Post by bramp »

Hi,

I've recently switched from pdflatex to xelatex for compiling my thesis. Now when I switched my large document worked pretty much fine, and then I could start using the nice font features of xelatex.

However, one thing that keeps appearing in the log output of xelatex is:
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
There is no indication of where these lines are coming from, and it might be quite hard for me to create a simple test case as I have a huge document, and I wouldn't know where to begin.

So, has anyone seen this message before, and know what it means? Or does anyone know how I can make XeLaTeX give me more information. For example "Failed to convert input string on line 10".

thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

** WARNING ** Failed to convert input string to UTF16...

Post by localghost »

Seem to be some problems with converting your input to the UTF16 encoding. What input encoding do you use (latin1, utf8, …)? I can't offer a solution, but you could take a look at the Example in the Wikipedia article for XeTeX [1]. The example uses the xunicode package, which may solve your problem.

[1] XeTeX - Wikipedia, the free encyclopedia


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
np-problem
Posts: 1
Joined: Thu Feb 05, 2009 11:22 pm

Re: ** WARNING ** Failed to convert input string to UTF16...

Post by np-problem »

I get the same warnings since I updated to Texlive 2008 (2007 didn't have this problem).
It seems to happen when the PDF bookmarks are written (hyperref is used).

Adding xunicode or fontspec don't help either.

Any ideas?
Thanks!
gvanas
Posts: 7
Joined: Thu Jul 16, 2009 11:39 am

Re: ** WARNING ** Failed to convert input string to UTF16...

Post by gvanas »

I have the same error message. It seems to happen when integrating the tables of content (maybe with the associated PDF bookmarks as you suggest) and it does not seem related to the actual text content or its encoding.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

** WARNING ** Failed to convert input string to UTF16...

Post by localghost »

gvanas wrote:I have the same error message. It seems to happen when integrating the tables of content (maybe with the associated PDF bookmarks as you suggest) and it does not seem related to the actual text content or its encoding.
It would be much easier to give help if you provide a minimal working example (MWE) that reproduces the error. If you are using a True Type Font, make sure that you choose one that everybody has on his local machine.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gvanas
Posts: 7
Joined: Thu Jul 16, 2009 11:39 am

** WARNING ** Failed to convert input string to UTF16...

Post by gvanas »

Hello Thorsten,

Thanks for your message.

Actually, this problem does not seem severe or have much consequences.

Anyway, here is a MWE as you suggest. After some testing, it appears when making the table of contents and when the hyperref package is used with option unicode=true. Hint: the number of warnings is positively correlated to the number of sections in the document. ;)

This may also be related to the following answered question:
http://scripts.sil.org/cms/SCRIPTs/page ... #bookmarks.

Kind regards,
gvanas
Attachments
WarningUTF16.tex
Tex file to reproduce the "** WARNING ** Failed to convert input string to UTF16..." warning.
(497 Bytes) Downloaded 650 times
Post Reply