Forum Bugs

xinclude fails accessing filenames with non ascii chars

Stephan
Hi Michael,

Prince seams to have a problem to include filenames with special characters.

Source document:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xi="http://www.w3.org/2001/XInclude">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Book Title</title>
</head>
<body>
<xi:include href="chap1.xml"/>
<xi:include href="chapß.xml"/>
<xi:include href="chapö.xml"/>
</body>
</html>


Prince 11 output:
 > prince -i xml --xinclude index.html 
prince: index.html:11: error: failed build URL
prince: index.html:12: error: failed build URL


The files with special characters are not included in the resulting PDF.

Everything is correctly utf-8 encoded.

I am using Linux, xfs as file system and have normally no problem with those files.
 
 > ls -l
insgesamt 16
-rw-rw-r-- 1 xxx yyy  18 17. Jan 13:56 chap1.xml
-rw-rw-r-- 1 xxx yyy  19 26. Jan 10:54 chapö.xml
-rw-rw-r-- 1 xxx yyy 19 26. Jan 10:28 chapß.xml
-rw-rw-r-- 1 xxx yyy 440 26. Jan 11:13 index.html


What's going wrong here?
mikeday
libxml2 doesn't like unescaped UTF-8 in URLs. It works if you url-encode it:
<xi:include href="chap1.xml"/>
<xi:include href="chap%C3%9F.xml"/>
<xi:include href="chap%C3%B6.xml"/>
Stephan
Oh , yes.
I 'm forgetting this over and over again..

Thank you!