Jump to content

How to read special character in a file?


joecool2005

Recommended Posts

On the following code

	   Dim FILENAME As String = "D:\Ufile\www\nw\Test\DTEXPORT.txt"		Dim objStreamReader As StreamReader		objStreamReader = File.OpenText(FILENAME)		Session("csvContent") = objStreamReader.ReadToEnd()		objStreamReader.Close()		Response.Write(Session("csvContent"))

When I have a special character inside the file like "é", "ê", "è", the code display "�" .Why? What can I do?Thx

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...