943,902 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2160
  • VB.NET RSS
Feb 27th, 2009
0

save txt in utf-8 format

Expand Post »
i need to save some text in a file in utf-8 format but have no clue how to do it...

any help appreciated...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Dell XPS is offline Offline
85 posts
since Sep 2007
Mar 1st, 2009
0

Re: save txt in utf-8 format

Did you try System.IO.File.WriteAllText(path, data, encoding) ?? what about the third parameter?
Last edited by Ramy Mahrous; Mar 1st, 2009 at 7:13 am.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Mar 1st, 2009
0

Re: save txt in utf-8 format

thank you for your reply...

can u explain a little more how this statement is used and that third parameter u mentioned...
also it is a database software that i am writing so i need to append and not replace a file...

thank you
Last edited by Dell XPS; Mar 1st, 2009 at 12:27 pm.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Dell XPS is offline Offline
85 posts
since Sep 2007
Mar 1st, 2009
0

Re: save txt in utf-8 format

Friend, see the documentation and play with this method as you need don't expect someone writing code for you. I guided you
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Program with Database - Design Question
Next Thread in VB.NET Forum Timeline: VB.NET and Excel





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC