Benches macOS

3

Can GhostScript handle UTF-8 encoded files?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Is there a way to tell GhostScript that its input file is encoded in UTF-8?

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    Clea Rees

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I don't know much about this, so this is almost curiosity more than anything, but wouldn't that usually be handled by a process run
    prior to gs? That is, by whatever produces the postscript which is to be passed to gs? In TeX, for example, the flow would usually go input -> TeX/LaTeX/whatever -> dvi output -> dvi to ps processor -> ps output -> gs -> final output (dependent on device). It's the initial processor which usually needs to know whether the input is UTF-8 encoded or whatever.

    - cfr

  2. 0

    cbfiddle

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Don't know about TeX, but PostScript files normally contain text that is rendered. That's why GhostScript needs to know about fonts.

  3. 0

    Clea Rees

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hmm... I know that. For some reason I wasn't thinking about output encodings, only input encodings... Never mind. Ignore me.

    - cfr