16-06-2006, 22:15
|
|
|
|
חבר מתאריך: 15.07.04
הודעות: 3,236
|
|
ועכשיו, הסבר ללמה זה עובד (או בעצם לא עובד) רמז, הבעיה לא בnotepad, הבעיה בwindows.
ציטוט:
It's not an Easter egg (even though it seems like a funny one), and as it turns out, Notepad writes the file correctly. It's only when Notepad reads the file back in that it seems to lose its mind.
But we can't even blame Notepad: it's a limitation of Windows itself, specifically the Windows function that Notepad uses to figure out if a text file is Unicode or not.
You see, text files containing Unicode (more correctly, UTF-16-encoded Unicode) are supposed to start with a "Byte-Order Mark" (BOM), which is a two-byte flag that tells a reader how the following UTF-16 data is encoded. Given that these two bytes are exceedingly unlikely to occur at the beginning of an ASCII text file, it's commonly used to tell whether a text file is encoded in UTF-16.
|
http://apipes.blogspot.com/2006/06/...-can-break.html
_____________________________________
יש 99% שכל מה שרשמתי הוא טעות.
|