On Fri, 8 Dec 2006 15:54:45 +0000, you wrote: > How do you set Notepad to Ecnoding = Unicode. > I cant see an option for that ?
Perhaps it listens to a BOM? http://unicode.org/unicode/faq/utf_bom.html#22 It would mean you have to initialize your textfile before editing with some utility like awk: ---- BOF file initutf.cmd ---- linewrapped by mail !! @echo off echo Build a few common BOM prefixed UTF files echo BOM for UTF-8 awk "BEGIN{printf(\"\xEF\xBB\xBFUTF-8\"); exit 0}" >utf8.txt echo BOM for UTF-16 Little Endian awk "BEGIN{printf(\"\xFF\xFE\x55\x00\x54\x00\x46\x00\x2D\x00\x31\x00\x36\x00\x4C\x00\x45\x00\"); exit 0}" >utf16LE.txt echo BOM for UTF-16 Big Endian awk "BEGIN{printf(\"\xFE\xFF\x00\x55\x00\x54\x00\x46\x00\x2D\x00\x31\x00\x36\x00\x42\x00\x45\"); exit 0}" >utf16BE.txt ---- EOF file initutf.cmd ---- (tested, works with notepad.exe v5.1.2600.2180 Dutch) HTH -- ( Kees Nuyt ) c[_] ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------