473,320 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

? key and stream reader


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anyone know why the IO.StreamReader ignore ? ? I would like to use
it but it refuses to acknowledge it.

Daryl Davis

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2

iQA/AwUBQBGknkHxCdI8f75rEQItzgCggJJ69aoJ5UVP5uhdNxI+El Q/DtUAn3mx
QOc7obxzJbWlf9589sd+CiNy
=ulD1
-----END PGP SIGNATURE-----
Nov 20 '05 #1
12 1070
* "Daryl Davis" <th***********@hotmail.com> scripsit:
Anyone know why the IO.StreamReader ignore ? ? I would like to use
it but it refuses to acknowledge it.


What does it ignore? Question marks ("?")? Are you sure you are using
the right encoding when reading the file? Specify 'Envoding.Default' in
the 2nd parameter of the 'StreamReader''s constructor to read the file
using the current codepage.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It ignores the Euro Symbol. Funny how also ignores it too.
Daryl Davis
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in
message news:e4*************@TK2MSFTNGP12.phx.gbl...
* "Daryl Davis" <th***********@hotmail.com> scripsit:
Anyone know why the IO.StreamReader ignore ? ? I would like to
use it but it refuses to acknowledge it.


What does it ignore? Question marks ("?")? Are you sure you are
using the right encoding when reading the file? Specify
'Envoding.Default' in the 2nd parameter of the 'StreamReader''s
constructor to read the file using the current codepage.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2

iQA/AwUBQBG93UHxCdI8f75rEQLDgQCg/F7KsJnHtHiTk/TlwRhgQgCBuzQAnjcV
7uTSwrefsdhrnje7toBH2Png
=vPwL
-----END PGP SIGNATURE-----
Nov 20 '05 #3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I meant to type funny how the news group ignores it also.
It ignores the Euro Symbol. Funny how also ignores it too.
Daryl Davis


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2

iQA/AwUBQBHBFUHxCdI8f75rEQLtNwCgixUPz02iBSZitlR8QU3/ci4r+YAAoPOc
eUQzXy7DtdE1REDTBKDqAs5C
=Iz6N
-----END PGP SIGNATURE-----
Nov 20 '05 #4
* "Daryl Davis" <th***********@hotmail.com> scripsit:
It ignores the Euro Symbol. Funny how also ignores it too.


Did you read my post and did the suggestion (playing with the encoding)
work?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
"Daryl Davis" <th***********@hotmail.com> schrieb

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Is your PGP stuff really necessary? A little confusing (for me) to read.
Probably I'll get flamed again (not by you but by who-knows) when saying it
is at least not common usage, well, I'd even say you should not do it.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
Cor
Hi Daryl,

Is there maybe something with your code set on your computer, because with
me all messages from you look a little different than normal.

A lot of things in uppercases and strange words at the bottom?

Cor
Nov 20 '05 #7
* "Daryl Davis" <th***********@hotmail.com> scripsit:
I meant to type funny how the news group ignores it also.


Yep. Some messages are encoded using a format which doesn't support the
Euro symbol.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
I have not played with the encoding yet. As soon as I get it to work I will
let you know

Daryl Davis (leaving PGP out)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
* "Daryl Davis" <th***********@hotmail.com> scripsit:
It ignores the Euro Symbol. Funny how also ignores it too.


Did you read my post and did the suggestion (playing with the encoding)
work?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
* "Daryl Davis" <th***********@hotmail.com> scripsit:
I have not played with the encoding yet. As soon as I get it to work I will
let you know


Which encoding does your file use?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #10
UTF8

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bv************@ID-208219.news.uni-berlin.de...
* "Daryl Davis" <th***********@hotmail.com> scripsit:
I have not played with the encoding yet. As soon as I get it to work I will let you know


Which encoding does your file use?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #11
* "Daryl Davis" <th***********@hotmail.com> scripsit:
UTF8


Problem solved?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #12
I wish it was. I am going to try writing the files in Binary and retreive
them that way. I hope that will fix my problem.
Daryl Davis

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bv************@ID-208219.news.uni-berlin.de...
* "Daryl Davis" <th***********@hotmail.com> scripsit:
UTF8


Problem solved?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leon Jollans | last post by:
Hi. I'm reading a 5 meg (or so) file from the response stream of a WebRequest, and it's pitifully slow. I mean *really* slow, in the order of 15 minutes to download. Now obviously I'm caching this...
6
by: Yechezkal Gutfreund | last post by:
I have been using the following code (successfully) to read Xml formated text packets from a TCP stream. The output from the server stream consists of a sequence of well formed Xml documents...
5
by: Drew Yallop | last post by:
I read an XML file with a stream reader in VB.Net. When I look at the stream reader output in debug mode (by passing cursor over the stream reader object)the format is a perfect replica of the...
8
by: Scott | last post by:
Hi guys, If I try to call read(), readline(), readtoend() and there is nothing to read (from a never ending loop for example) the program seems to continue but it exits the loop for no apparent...
6
by: Rob Meade | last post by:
Hi all, I'm having a few difficulties with the above, ie I cant find any good examples anywhere of how to do what I want to do! I have an xml file on my desktop which I want to read in. ...
7
by: .... | last post by:
Hi I have an existing function which has a stream object (inmsg.BodyPart.Data). I'm trying to search and replace the stream object in the most efficient way possible This is my attempt below,...
10
by: John Kraft | last post by:
Hello all, I'm experiencing some, imo, strange behavior with the StreamReader object I am using in the code below. Summary is that I am downloading a file from a website and saving it to disk...
3
by: Martin Z | last post by:
Hi, I have an application that involves sending a lot of XML data to various places. The problem is that once in a while, I just want the XML document as a string (for example, sending to a...
2
by: Jack | last post by:
Hi, I want to read a string a chars from a stream, and put it into a string. At the moment, I'm creating a buffer of a fixed size, and reading the stream of text into it. It works, but I have...
20
by: tomPee | last post by:
Hi, I've bumbed into a slight problem now, and I just don't seem to know how to fix it. What I want to do is the following: Send over a socket: 1. Number of files to be send (not as an integer,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.