Number: 2042
Title: Problem with non latin characters in path for embedded images
Submitter: Peter Landgren
Date: Tue Sep 21 04:09:31 2010
Subsys: Dot
Version: 2.26.3
System: Other-Windows-XP Sp3
Severity: critical

I have no problem with including images in Linux.

In Windows XP: What encoding should I use in the dot file in order to get rid of error messasges like:

Warning: No such file or directory while opening C:Documents and SettingsP+ñr + keApplication Datagrampsthumb7dc8c0b6f143a24b7ab6644a58bd8fe4
Error: No or improper image file="C:Documents and SettingsP+ñr + keApplication Datagrampsthumb7dc8c0b6f143a24b7ab6644a58bd8fe4.png"
in label of node I0000

The problem is that the path contains non latin characters. In this case "Pär #ke", which is a user name.

This is when my output text us encoded with "text.encode('utf8', 'xmlcharrefreplace')" or just "unicode(text)"

If I use "text.encode(sys.getfilesystemencoding())" to encode the output I get another error message.

Error: not well-formed (invalid token) in line 1
.. <TD><IMG SRC="C:Documents and SettingsPõr +keApplication Datagrampsthumb7dc8c0b6f143a24b7ab6644a58bd8fe4.png"/> ...

Input file: b2042.gv
Comments: The resulting pdf file looks fine, but images are shown.
Owner: arif
Status: *