mstamy2/PyPDF2 — pull request #45 by chrishiestand (2013-11-26 09:32:17+00:00)
Title: fix missing BOM in Producer metadata

Oops. I realized that my previous patch was not working as intended
because it was missing the big endian BOM. It would get written
to PDF without the BOM, which is contra the PDF standard.

Please note that almost all UTF-16BE strings actually get successfully
converted to PDFDocEncoding by TextStringObject.writeToStream()
So just because we store UTF-16BE doesn't mean the encoding will end
up in the PDF.

Sorry about the double pull request.

As a side note, I was really surprised to find that PDFDocEncoding covers so many codepoints. I could not find a glyph that did not convert, though they must exist.