Export data to CSV file in Japanese

Hi experts!!!
I'm developing an application using ASP.NET/VB.NET .But I met a problem.
I need export data to CSV file. But the data is in Japanese, then the exported file cannot openned by MS Excel, or special symbol occured.
Who has experience with this problem, please let me know. Many thanks for your helps.
tuanbassAsked:
Who is Participating?
 
ehanoi2Commented:
Here is my solution:

Dim m_stream As New System.IO.MemoryStream
Dim output As String
Dim writer As New System.IO.StreamWriter(m_stream, System.Text.Encoding.Unicode)

Dim s1 As String = ApplicationResource.GetString("Header_PA5110_PartName")
writer.Write(s1 & vbTab & s1 & vbTab & s1)
writer.Close()
Response.BinaryWrite(m_stream.ToArray())
Response.End()

Hope this helps!

ehanoi
0
 
tuanbassAuthor Commented:
Now I done it mysel.Thanks all
0
 
tuanbassAuthor Commented:
Sorry, I'm wrong.

Please help me!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.