I think I remember seeing a very similar thing somewhere else, and it turned out to be a notepad bug.

The bug was that it was saving the file used ASCII as its default encoding but when you double clicked to open it, it tries to guess the encoding, and used a differnet one (in this case it appears to be using Unicode.

If you open up notepad, go to file->open, browse for the file, then choose encoding of ANSI and click ok, it will open the file correctly.

Here is a blog on msdn that (sort of) talks about this issue:
http://blogs.msdn.com/oldnewthing/archive/2004/03/24/95235.aspx

Couldn't find many more references, but I know I've seen it discussed before.

Moral of the story...don't use notepad :)


Matt




VAN BROECK Jimmy wrote:

Got it on my system also (Windows 2000)
I can only think on a bug in Notepad??

-----Original Message-----From: Henrique VIECILI [mailto:[EMAIL PROTECTED]: dinsdag 14 
september 2004 15:04To: Struts Users Mailing ListSubject: [CURIOUS-OT] 44 bytes in 
notepad txt file

Hi guys,
today i was creating a single file with a single property on it and got this strange behavior:
1. Opened notepad.exe2. Wrote this line: html.src.img.procura=imagens/botProcurar.gif3. Saved the file: html.properties4. Opened html.properties and 'voilà'... the characters were shown as black rectangles (!!!)
The curious thing is that if I open the file with MSWord or WordPad it show the line correctly, if I open with some Hex editor it shows the hex code and the correct line value, but in other editors like notepad and textpad it shows the black rectangles. This only occurs when the file is 44 bytes long.
Java reads the file normally.
Maybe something to do with character encoding?! but does notepad handle character encodings??
Does anyone here knows whats going on? Henrique Viecili


STRICTLY PERSONAL AND CONFIDENTIALThis message may contain confidential and 
proprietary material for the sole use of the intended recipient. Any review or 
distribution by others is strictly prohibited. If you are not the intended recipient 
please contact the sender and delete all copies.
Ce Message est uniquement destiné aux destinataires indiqués et peut contenir des 
informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas 
révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par 
erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le 
supprimer.
Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht 
niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, 
gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het 
bericht vervolgens te verwijderen.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to