Index: emit.c =================================================================== --- emit.c (revision 5930) +++ emit.c (working copy) @@ -391,8 +391,8 @@ title = ptr + 1; /* - * Replace double quotes with single quotes so that the title - * does not cause a PJL syntax error. + * Replace double quotes with single quotes and 8-bit characters with + * question marks so that the title does not cause a PJL syntax error. */ strlcpy(temp, title, sizeof(temp)); @@ -400,6 +400,8 @@ for (ptr = temp; *ptr; ptr ++) if (*ptr == '\"') *ptr = '\''; + else if (*ptr & 128) + *ptr = '?'; /* * Send PJL JOB and PJL RDYMSG commands before we enter PostScript mode...