Notepad problem!

M

Michael Weiss

I've come across a weird problem with Windows 2000 and XP and Notepad.

If I open Notepad and enter this text into a new document: "p1129547"

Then I save this text file, then reopen the file I see garbage in the file.

I've opened this file in Visual Studio .NET 2003 (a slightly richer development environment then notepad) both as text and in binary mode and it looks fine.
Is this some sort of encoding/Unicode/"BOM" problem?
 
D

doc

-----Original Message-----
I've come across a weird problem with Windows 2000 and XP and Notepad.

If I open Notepad and enter this text into a new document: "p1129547"

Then I save this text file, then reopen the file I see garbage in the file.

I've opened this file in Visual Studio .NET 2003 (a
slightly richer development environment then notepad) both
as text and in binary mode and it looks fine.
Is this some sort of encoding/Unicode/"BOM" problem?

I tried it in Win98 and had no problems, which of course
is of no help to you. May I recommend a free text editor
that I use instead of notepad? I knew you would say yes.
http://www.notetab.com
(I'm certain there are others out there too, just watch
your post for more links!)

doc
 
D

Dublevay

doc said:
I tried it in Win98 and had no problems, which of course
is of no help to you. May I recommend a free text editor
that I use instead of notepad? I knew you would say yes.
http://www.notetab.com
(I'm certain there are others out there too, just watch
your post for more links!)

I was about to say that most people won't be interested in replacements of
their built in, simple applications. Then I looked at a screenshot of
NoteTab. Ebcdic.cob suddenly grabbed my attention. Looks like it could be
quite useful as a quick way to store multiple compile listings, when
cross-referencing code.

By the way, I'm a mainframe analyst, hence the fetish-like attention I gave
to Ebcdic.cob!! ;o)

I'm downloading it now!!

JW
 
M

Michael Weiss

Let's not get into text-editor debates! That's quite the holy war among developers (me) and other IT people.

You know EMACS is a great o/s, but it needs a better text editor. (maybe this is lost in a windows forum?) ;)
 
D

doc

-----Original Message-----



I was about to say that most people won't be interested in replacements of
their built in, simple applications. Then I looked at a screenshot of
NoteTab. Ebcdic.cob suddenly grabbed my attention. Looks like it could be
quite useful as a quick way to store multiple compile listings, when
cross-referencing code.

By the way, I'm a mainframe analyst, hence the fetish- like attention I gave
to Ebcdic.cob!! ;o)

I'm downloading it now!!

JW
Yes, it's great for code writing. Not perfect of course,
but it is more functional than notepad (esp. the Win 98
version,which basically limits you to a couple of
paragraphs before being maxed out.)It's my deafult editor
for most everything from simple txt files to perl and php
scripts.
doc
 
W

Wesley VogelX

Michael;
I opened Notepad copied and pasted p1129547. Saved. Closed. Opened. And
got this:
I recreated this using Alt + 0141.
Alt + 0141 = Alt + 0143 = Alt + 0144 = Alt + 0157 =
 
A

aki999

Yes - this is Unicode problem.

Create new doc, enter p1129547, close and save. 8-byte
ascii file is created

Open file - garbage inside (notepad treats this file as
Unicode).

Delete this garbage and enter one more time p1129547,
close and save. 18 byte unicode file is created (2 byte
unicode signature and 8 unicode characters)

Hello, Microsoft, a little bug lives here :)
 

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

Top