Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB2008 and special characters ouside ASCII range

Status
Not open for further replies.

monkey64

Technical User
Apr 27, 2008
69
0
0
GB
I have a program which takes a value from an Access database and makes a text file.
The file is used to update a MySql database. I have some German characters, so I encoded the file using the following code:

My.Computer.FileSystem.WriteAllText("MyFile", t.ToString, False, System.Text.Encoding.Default)

It works fine, that is until it encounters a character outside the ASCII set, such as the ™ (Trade Mark) symbol. All I get when viewed in Textpad is a | style character indicating that it cannot be viewed. It's the same story when I view the database.

Is this an issue with VB.NET or the way in which I am encoding the file?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top