Posted 19 years ago by GLarson
Avatar
I noticed that if I load a Unicode file (Russian in this case), it still displays properly even though I specified System.Text.ASCIIEncoding for the Encoding param in Document.LoadFile().

Does LoadFile file try a 'best-guess' approach before considering the Encoding parameter?

Thanks.
Greg

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you use the LoadFile overload that accepts an Encoding, we do a File.OpenRead and then create a StreamReader on that stream and pass it the Encoding you specify. So what ever Microsoft does in their internal framework is what's happening at that point.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.