save txt in utf-8 format

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 85
Reputation: Dell XPS is an unknown quantity at this point 
Solved Threads: 0
Dell XPS Dell XPS is offline Offline
Junior Poster in Training

save txt in utf-8 format

 
0
  #1
Feb 27th, 2009
i need to save some text in a file in utf-8 format but have no clue how to do it...

any help appreciated...
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: save txt in utf-8 format

 
0
  #2
Mar 1st, 2009
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.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 85
Reputation: Dell XPS is an unknown quantity at this point 
Solved Threads: 0
Dell XPS Dell XPS is offline Offline
Junior Poster in Training

Re: save txt in utf-8 format

 
0
  #3
Mar 1st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: save txt in utf-8 format

 
0
  #4
Mar 1st, 2009
Friend, see the documentation and play with this method as you need don't expect someone writing code for you. I guided you
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC