Encodes provided string to a Buffer object as plc STRING using cp1252 encoding

  • Parameters

    • str: string

      String to encode

    • UTF8: boolean = false

      If true, the value is encoded as UTF-8, otherwise as cp1252.

    Returns Buffer