Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Write Utf-8 File
VB.NET Example Source Code to write a string as utf-8 to a file. ' Write the string as utf-8.
' This also writes the 3-byte utf-8 preamble at the beginning of the file.
Dim appendMode As Boolean = False ' This overwrites the entire file.
Dim sw As New StreamWriter("out_utf8.txt", appendMode, System.Text.Encoding.UTF8)
sw.Write(TextBox1.Text)
sw.Close()
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.