MSFN Forum: Chinese Notepad - MSFN Forum

Jump to content



Think before posting!

If your post is even remotely technical in nature, it probably doesn't belong here. Take another look at the forums and try to find the *right* location before posting a technical question here.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chinese Notepad How weird?

#1 User is offline   EchoNoise 

  • Defender of the Penguin
  • PipPipPipPipPip
  • Group: Members
  • Posts: 933
  • Joined: 10-April 05

Posted 20 June 2006 - 04:52 PM

Hi peoples, try this in notepad
  • Open Up Notepad
  • Type in "Help the big tiger" (without the quotes)
  • Save the File
  • Close notepad and Open it up again
  • Open up the file you just saved
  • LOOK AT IT !
How freaking weird! :lol:


#2 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 20 June 2006 - 10:38 PM

Only happens on Vista. I know, their notepad is broken.

#3 User is offline   Jito463 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 442
  • Joined: 01-July 04

Posted 20 June 2006 - 11:03 PM

Happens in XP x64 version as well. Very strange.

#4 User is offline   oldwolf 

  • Wolf
  • PipPip
  • Group: Members
  • Posts: 155
  • Joined: 11-May 05

Posted 21 June 2006 - 12:30 AM

Happens in XP SP1 too

#5 User is offline   EchoNoise 

  • Defender of the Penguin
  • PipPipPipPipPip
  • Group: Members
  • Posts: 933
  • Joined: 10-April 05

Posted 21 June 2006 - 12:49 AM

View PostLLXX, on Jun 21 2006, 02:38 PM, said:

Only happens on Vista. I know, their notepad is broken.


Happens on all unicode versions of notepad :)

#6 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 21 June 2006 - 01:57 AM

View Postundeadsoldier, on Jun 21 2006, 08:49 AM, said:

View PostLLXX, on Jun 21 2006, 02:38 PM, said:

Only happens on Vista. I know, their notepad is broken.


Happens on all unicode versions of notepad :)


And in Notepad2 too. :lol:

Which is pretty easy to understand since I think it uses the same APIs as windows's notepad to display text.

#7 User is offline   WolfX2 

  • Werewolf? Here's Wolf! :P
  • Group: Supreme Sponsor
  • Posts: 692
  • Joined: 20-January 06

Posted 26 June 2006 - 10:32 PM

happens on XP SP2 too :P

#8 User is offline   EchoNoise 

  • Defender of the Penguin
  • PipPipPipPipPip
  • Group: Members
  • Posts: 933
  • Joined: 10-April 05

Posted 28 June 2006 - 12:07 AM

Like I said... All unicode versions of notepad

:D

#9 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 28 June 2006 - 01:50 AM

Oh, this doesn't happens anymore in Notepad2!
Hum, what is XVI32 doing in my taskbar ?



Also,
Posted Image
:P


And this never happens in Notepad++ which can also be used to restore your text. ;)


PS: notepad2 doesn't use the same API than windows's notepad. That was a Big mistake.

This post has been edited by Camarade_Tux: 28 June 2006 - 01:52 AM


#10 User is offline   EchoNoise 

  • Defender of the Penguin
  • PipPipPipPipPip
  • Group: Members
  • Posts: 933
  • Joined: 10-April 05

Posted 28 June 2006 - 03:33 AM

Hahaha, thats a great find ! :)

#11 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 28 June 2006 - 08:04 AM

This specific sequence should be a header. Right ?

#12 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 29 June 2006 - 12:09 AM

View PostCamarade_Tux, on Jun 28 2006, 09:04 AM, said:

This specific sequence should be a header. Right ?
Yes, Unicode text files should have FFFE as the first word. The programmer forgot to add a check for that, and instead assumed Unicode.

#13 User is offline   clavicle 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 28-January 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 June 2006 - 12:54 AM

View Postundeadsoldier, on Jun 28 2006, 03:03 PM, said:

Hahaha, thats a great find ! :)


Indeed it is great find and strange too :thumbup

#14 User is offline   SourceCode 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 05-July 06

Posted 05 July 2006 - 10:43 PM

heh, that's strange.

it's not a problem with the API itself though, because i use that same API in another app and it handles the file like normal.

#15 User is offline   Camarade_Tux 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,760
  • Joined: 22-May 05

Posted 06 July 2006 - 01:21 AM

Thanks to a problem with an AutoHotKey script I think I found some explanations.
The FF FE sequence is used to determine the endianness of the file. It is a BOM.
If you read wikipedia's articles you know endianness is hardware-dependent.
Now, do you think Notepad, Notepad2... could run on something else than little-endian machines such as Intel's processors ?
So there is no need to bother with "FF FE", it will always be little-endian.
Then, Notepad++ is based on ScinTilla, and ScinTilla can run on win32 and machines that support GTK+. So it can include big-endian machines. Thus, it needs this FF FE string.

If you try to open a unicode text file created on a machine with a SPARC processor (SunOS) with Notepad/Notepad2, you will probably have troubles reading it. :)

#16 User is offline   patio 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 13-August 04

Posted 09 July 2006 - 06:35 PM

Or try this in Notepad:

this app can break


Save it and re-open it and see for yourself.

patio. B)

#17 User is offline   zhangheyin 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 04-July 05

Posted 12 July 2006 - 12:01 AM

XP sp2 Professional Chinese editon


XP sp2 Professional Chinese editon

Attached File(s)



#18 User is offline   EchoNoise 

  • Defender of the Penguin
  • PipPipPipPipPip
  • Group: Members
  • Posts: 933
  • Joined: 10-April 05

Posted 13 July 2006 - 01:03 AM

View Postpatio, on Jul 10 2006, 10:35 AM, said:

Or try this in Notepad:

this app can break


Save it and re-open it and see for yourself.

patio. B)



hahahahaha!!! thats awesome :lol: :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy