Dim w As New System.IO.StreamWriter(fs)
            Page = Page.Replace("&", " ")
            Page = Page.Replace("- <", "<")

            Page = Page.TrimStart(" ")
            w.Write(Page)

This is a better example of code that does what the above code sample
should be doing rather than changing UTF8 to ASCII - I replace a '- <'
with a '<' remove any '&'s and trim the white space. This makes it
sorted for VB.Net whilst preserving most the document text.

Reply via email to