VB .Net pound problem - HELP!

  • Thread starter Thread starter z
  • Start date Start date
Z

z

Help please

I am using File.Append, and writeline("£ 123.00")

but write is prefixing the £ with a char(194) when I open the file, need to
get rid of this quick, any help appreciated.

Thanks
T
 
Can you please send the entire source code so we can test it

Samuel
 
z said:
I am using File.Append, and writeline("£ 123.00")

but write is prefixing the £ with a char(194) when I open the file, need
to get rid of this quick, any help appreciated.

Maybe you are using the wrong encoding to store the text to your file. You
may want to post the full file-access related code.
 
Michael D. Ober said:
Open your file with encoding system.text.ASCII.

Why would you recommend to use the ASCII encoding? It's very uncommon on
Windows system. Typically Windows-ANSI or UTF-8 are used.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top