LoadOptions.Encoding

LoadOptions.Encoding property

Gets or sets encoding which is used to read a project from HTML, MPX, XER and Primavera XML formats. The default encoding is UTF8.

public Encoding Encoding { get; set; }

Examples

Shows how to specify encoding when opening a project from Primavera XER file.

LoadOptions lo = new LoadOptions();
lo.Encoding = Encoding.GetEncoding(1251);
lo.PrimaveraReadOptions = new PrimaveraReadOptions();
var project = new Project("encoding1251.xer", lo);

See Also