Printing out weird code instead of actual print jobs
That 'weird code' is actually PostScript, and is the raw data of the print job. 

If this is a large network printer, these models very often have different LPD queues to which you can send the job. These can define the expected input data. (E.g. my HP 5200 has "RAW", "AUTO", "BINPS", and "TEXT" as LPD queues.) Check the manual of the printer, and see what print queues are offered, and make sure you configure the 'Printer' in MacOS to send to a particular queue.