View Single Post
  #3 (permalink)  
Old 06-14-2009, 12:00 PM
Randem
Newsgroup Contributor
 
Posts: n/a
Re: Is there a way to open a unicode file in Notepad with the correct script

That I already knew... but the question remains...

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
Disk Read Error Press Ctl+Alt+Del to Restart
http://www.randem.com/discus/message...tml?1236319938



"Andrew McLaren" <me@somewhere.org> wrote in message
news:uMQn3nO7JHA.3304@TK2MSFTNGP06.phx.gbl...
> 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



Reply With Quote

 
Old 06-14-2009, 12:00 PM