Sunday, December 17, 2006

奇怪的algorithm???

先玩个游戏。。。开启notepad,在notepad输入以下的句子。
bush hid the facts
(不要在句子前后输入任何东西,包括)

打完之后,储存然后关闭,再打开。。。你看到什么??格子对吗??
(不同的电脑设定,可能看到中文字)

现在,把那些格子擦掉,重新输入刚才的句子。
再储存,关闭然后再打开。。。
现在,整行句子出来了??

为什么这样呢??大家一起猜猜看吧。

3 comments:

Unknown said...

Hi Johe,

If you create it in Notepad, it will not show the words. But, if you using Wordpad or TextPad to open it. You can see them.

Only "bush hid the facts" will dislay this effect?

GG said...

路过...

任何 xxxx xxx xxx xxxxx 的句子都会有同样效果。这是 notepad 的 bug。

http://blogs.msdn.com/oldnewthing/archive/2004/03/24/95235.aspx

AdvenC said...

好像只有ANSI encode才有这问题,save as Unicode text 就看得到原文了...:-)