Home All Groups Group Topic Archive Search About

VB .Net pound problem - HELP!

Author
11 Aug 2006 11:48 AM
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

Author
11 Aug 2006 12:41 PM
Samuel Shulman
Can you please send the entire source code so we can test it

Samuel


Show quoteHide quote
"z" <z@home.com> wrote in message
news:I8_Cg.36792$Ca.28933@fe1.news.blueyonder.co.uk...
> 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
>
Author
11 Aug 2006 2:30 PM
Herfried K. Wagner [MVP]
"z" <z@home.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
11 Aug 2006 4:55 PM
Michael D. Ober
Open your file with encoding system.text.ASCII.

Mike.

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:Ooy%23sKVvGHA.3372@TK2MSFTNGP02.phx.gbl...
> "z" <z@home.com> schrieb:
>> 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.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
11 Aug 2006 6:38 PM
Herfried K. Wagner [MVP]
"Michael D. Ober" <ober***@.alum.mit.edu.nospam> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>