| Re: Is there a way to open a unicode file in Notepad with the correctscript Randem wrote:
> I need to find a way to tell notepad to open a unicode japanese file and use
> the japanese script so that the letters show correctly. Notepad cannot do
> this own it's own.
Notepad uses a set of hueristics to determine whether a file is Unicode,
or some single-byte character set ... in other words, it tries to guess.
Canonically, Unicode files begin with the two byte "Byte-Ordering Mark",
0xFF 0xEF (or vice versoa for Little-Endian systems). Pretty well any
text file which begines with a BOM, will be opened by Notepad as Unicode.
After that, it may come down to Notepad's default font for Unicode
detection. On a English-language system, the default Notepad font
(Lucida Console?) does not contain the CJK range of Unicode chars. Try
setting the default font to a specifically Unicode font such as Arial
Unicode MS, or Lucida Sans Unicode, and try again. If glyphs for the
Unicode characters are present in the font set, then the is likely to
display correctly. If you open a file with Unicode chars which are not
in teh current font, then it cannot dispay correctly, whether it is
correctly detected as Unicode or not.
Hope it helps,
Andrew
--
amclar at optusnet dot com dot au |