?
Solved

Export data to CSV file in Japanese

Posted on 2005-04-08
3
Medium Priority
?
476 Views
Last Modified: 2008-03-04
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.
0
Comment
Question by:tuanbass
  • 2
3 Comments
 

Author Comment

by:tuanbass
ID: 13734952
Now I done it mysel.Thanks all
0
 

Author Comment

by:tuanbass
ID: 13734992
Sorry, I'm wrong.

Please help me!
0
 
LVL 1

Accepted Solution

by:
ehanoi2 earned 2000 total points
ID: 13734996
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question