Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I think I'm going crazy

I think I'm going crazy

Scheduled Pinned Locked Moved The Lounge
question
17 Posts 14 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D dlongwood

    Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

    M Offline
    M Offline
    Maximilien
    wrote on last edited by
    #3

    Hehehe, funny, I get the boxes !!!


    Maximilien Lincourt For success one must aquire one's self

    1 Reply Last reply
    0
    • D dlongwood

      Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

      M Offline
      M Offline
      Matt Newman
      wrote on last edited by
      #4

      It doesn't do this for me (Win XP Pro SP1) Matt Newman

      S 1 Reply Last reply
      0
      • D dlongwood

        Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

        D Offline
        D Offline
        dlongwood
        wrote on last edited by
        #5

        s42itd.dll happens to be the name of one of my company's dlls. I was just trying to write it in a stupid text file. But of course, Microsoft just didn't want me to do that... "Just don't type that" will probably be the official work-around. :-)

        1 Reply Last reply
        0
        • D dlongwood

          Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #6

           at the beginning of a file tells text editors that a file is unicode - I wonder if this is another similar sequence.

          "Do unto others as you would have them do unto you." - Jesus
          "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

          1 Reply Last reply
          0
          • D dlongwood

            Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

            M Offline
            M Offline
            Michael P Butler
            wrote on last edited by
            #7

            Seems like you've either stumbled across an Easter Egg or a bug in notepad. wordpad and IE both display the file correctly. Interesting, a quick google doesn't offer any clues. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879

            J 1 Reply Last reply
            0
            • M Michael P Butler

              Seems like you've either stumbled across an Easter Egg or a bug in notepad. wordpad and IE both display the file correctly. Interesting, a quick google doesn't offer any clues. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879

              J Offline
              J Offline
              Jesse Evans
              wrote on last edited by
              #8

              I tried this and I get something a bit different: Run Notepad type s42itd.dll Save and close reopen... there's nothing there! (Not even little boxes.) type s42itd.dll again Save and Close reopen... and now it's there, just as I typed it! (NT 4 sp6a) 'til next we type... HAVE FUN!! -- Jesse

              1 Reply Last reply
              0
              • D dlongwood

                Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                B Offline
                B Offline
                Barry Lapthorn
                wrote on last edited by
                #9

                I'm pretty sure I read it in Richter's Advanced Windows: notepad makes a guess as to whether the file is unicode or non-unicode by partially parsing the file. I guess the s42itd looks more unicode than non-unicode in byte format. Cheers, Barry

                J 1 Reply Last reply
                0
                • B Barry Lapthorn

                  I'm pretty sure I read it in Richter's Advanced Windows: notepad makes a guess as to whether the file is unicode or non-unicode by partially parsing the file. I guess the s42itd looks more unicode than non-unicode in byte format. Cheers, Barry

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #10

                  But it does this in only new files apparently because I can take the same file after the mess up, type in the info again and save it and it's fine. Crazy. Jeremy Falcon

                  1 Reply Last reply
                  0
                  • D dlongwood

                    Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #11

                    It looks like notepad defaults to Unicode in this situation...

                    0B3E:0100 FF FE 73 00 34 00 32 00-69 00 74 00 64 00 2E 00 ..s.4.2.i.t.d...
                    0B3E:0110 64 00 6C 00 6C 00 96 90-02 00 EB 0E 34 00 2D 0B d.l.l.......4.-.
                    0B3E:0120 FF E8 9E 00 58 EB 03 E8-1D 01 58 C3 F9 C3 55 51 ....X.....X...UQ
                    0B3E:0130 26 8A 4F 08 32 ED 0B C9-74 0D 8D 6F 09 E8 19 04 &.O.2...t..o....
                    0B3E:0140 73 08 E8 0E 00 E2 F6 F9-EB 06 2E 89 2E A9 90 F8 s...............
                    0B3E:0150 59 5D C3 26 80 7E 00 00-74 03 45 EB F6 45 C3 2E Y].&.~..t.E..E..
                    0B3E:0160 80 0E A2 90 10 E8 C6 FF-72 4A 2E 80 26 A2 90 EF ........rJ..&...
                    0B3E:0170 50 2E A1 A5 90 2B C6 2E-01 06 A3 90 58 2E 8B 36 P....+......X..6

                    That's why it works the second time around, because you're typing in Unicode characters instead of ANSI. Jeremy Falcon

                    1 Reply Last reply
                    0
                    • M Matt Newman

                      It doesn't do this for me (Win XP Pro SP1) Matt Newman

                      S Offline
                      S Offline
                      Steve McLenithan
                      wrote on last edited by
                      #12

                      I have XP Pro sp1 also and I get the boxes.

                      Steve McLenithan
                      Is Bert Evil? | Homer: "Hello, operator, gimme the number for 911!"

                      1 Reply Last reply
                      0
                      • D dlongwood

                        Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                        K Offline
                        K Offline
                        Kalai Kandasamy
                        wrote on last edited by
                        #13

                        cool, I too got those crazy boxes.... :eek: Son, when you participate in sporting events, it's not whether you win or lose: it's how drunk you get! -- Homer J Simpson

                        1 Reply Last reply
                        0
                        • D dlongwood

                          Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                          V Offline
                          V Offline
                          Victor Tan
                          wrote on last edited by
                          #14

                          This is a moment of history! What are the chances of stumbling on that discovery??? Probably less than lottery? ;-)

                          1 Reply Last reply
                          0
                          • D dlongwood

                            Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                            J Offline
                            J Offline
                            Jim Lamb
                            wrote on last edited by
                            #15

                            This highlights the problem with ANSI encoding and reinforces the point that we should all be coding for Unicode. I'm guessing notepad is interpreting the byte sequence as a lead byte. On my system it shows up as far-eastern characters (Lucida console font which is Unicode and includes most character sets).

                            1 Reply Last reply
                            0
                            • D dlongwood

                              Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                              C Offline
                              C Offline
                              Chad Young
                              wrote on last edited by
                              #16

                              i followed your instructions but i get chinese(?) characters instead of empty boxes. Very strange.

                              1 Reply Last reply
                              0
                              • D dlongwood

                                Ok. So do this: Open Notepad Type "s42itd.dll" (without the quotes) Save and close Now, open the saved text file... I've done this on two different systems and all I get are 5 little empty boxes. Like it's trying to interperet the 10 characters I typed in as 5 bizarre unicode characters. What's the deal with that? Is notepad screwed up or am I???

                                D Offline
                                D Offline
                                dlongwood
                                wrote on last edited by
                                #17

                                I just don't understand where the Unicode byte pair (FF FE) comes from at the beginning of the file. The bytes for s and 4 certainly aren't similar to that... so what could possibly be confusing notepad? And how come if I type s42ext.dll (another of my company's dlls) it doesn't have that problem? Which character codes are the ones that cause notepad to barf? So strange...

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups