PDF outputs UTF-8 with BOM

PDF outputs UTF-8 with BOM

You need to use StreamWriter class.

If you construct it without the encoding in parameters - StreamWriter(String) - it will save UTF-8 file without BOM. Constructor StreamWriter(String, Boolean, Encoding) will save files with BOM (for appropriate encodings).

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.