PC Review


Reply
Thread Tools Rate Thread

Can I open Notepad in Unicode mode?

 
 
Pat Willener
Guest
Posts: n/a
 
      16th Feb 2009
The situation is the following: I often want to open the source (HTML)
text of an Outlook (2003) message that contains multibyte characters
such as Japanese text. This will open in Notepad, but in default ANSI
mode, and the text appears as "mojibake" garbage characters.

Is there a way to direct Notepad to open in Unicode mode, so that
multibyte characters appear unbroken?

(I was hoping that setting
HKEY_CURRENT_USER\Software\Microsoft\Notepad\lfCharSet to 1 or 2 would
change that behavior, but it does not.)

I have also asked in the Outlook group if the program that displays
source text could be changed (e.g. to Frontpage), but it seems that
nobody knows how to do that.
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      16th Feb 2009

"Pat Willener" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The situation is the following: I often want to open the source (HTML)
> text of an Outlook (2003) message that contains multibyte characters such
> as Japanese text. This will open in Notepad, but in default ANSI mode, and
> the text appears as "mojibake" garbage characters.
>
> Is there a way to direct Notepad to open in Unicode mode, so that
> multibyte characters appear unbroken?
>
> (I was hoping that setting
> HKEY_CURRENT_USER\Software\Microsoft\Notepad\lfCharSet to 1 or 2 would
> change that behavior, but it does not.)
>
> I have also asked in the Outlook group if the program that displays source
> text could be changed (e.g. to Frontpage), but it seems that nobody knows
> how to do that.


If your file was saved in Unicode format and if its first two bytes are FF
FE then notepad.exe will automatically open in Unicode mode. What are the
first two bytes in your file?
1390:0100 FF FE 54 00 68 00 65 00-20 00 71 00 75 00 69 00 ..T.h.e.
..q.u.i.
1390:0110 63 00 6B 00 20 00 62 00-72 00 6F 00 77 00 6E 00 c.k.
..b.r.o.w.n.
1390:0120 20 00 66 00 6F 00 78 00-69 6E 20 34 33 2F 35 30 .f.o.x.in
43/50


 
Reply With Quote
 
dadiOH
Guest
Posts: n/a
 
      16th Feb 2009
Pat Willener wrote:

> I have also asked in the Outlook group if the program that displays
> source text could be changed (e.g. to Frontpage), but it seems that
> nobody knows how to do that.


1. You could change the extension on the email or copy there of to HTM and
set Frontpage or whatever as default for that extension. Of course, setting
Frontpage as the default for that extension would be a nuisance when using
other HTM documents so...

2. You could create a new extension, set it to use Frontpage and change your
email to *that* extension or...

3. Just use "open with"

--

dadiOH
____________________________

dadiOH's dandies v3.06...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico



 
Reply With Quote
 
Pat Willener
Guest
Posts: n/a
 
      17th Feb 2009
Pegasus (MVP) wrote:
> "Pat Willener" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> The situation is the following: I often want to open the source (HTML)
>> text of an Outlook (2003) message that contains multibyte characters such
>> as Japanese text. This will open in Notepad, but in default ANSI mode, and
>> the text appears as "mojibake" garbage characters.
>>
>> Is there a way to direct Notepad to open in Unicode mode, so that
>> multibyte characters appear unbroken?
>>
>> (I was hoping that setting
>> HKEY_CURRENT_USER\Software\Microsoft\Notepad\lfCharSet to 1 or 2 would
>> change that behavior, but it does not.)
>>
>> I have also asked in the Outlook group if the program that displays source
>> text could be changed (e.g. to Frontpage), but it seems that nobody knows
>> how to do that.

>
> If your file was saved in Unicode format and if its first two bytes are FF
> FE then notepad.exe will automatically open in Unicode mode. What are the
> first two bytes in your file?
> 1390:0100 FF FE 54 00 68 00 65 00-20 00 71 00 75 00 69 00 ..T.h.e.
> .q.u.i.
> 1390:0110 63 00 6B 00 20 00 62 00-72 00 6F 00 77 00 6E 00 c.k.
> .b.r.o.w.n.
> 1390:0120 20 00 66 00 6F 00 78 00-69 6E 20 34 33 2F 35 30 .f.o.x.in
> 43/50


The "file" unfortunately is not a file, but the body text of the HTML
Outlook message, which usually starts with '<!DOCTYPE ...'.
 
Reply With Quote
 
Pat Willener
Guest
Posts: n/a
 
      17th Feb 2009
dadiOH wrote:
> Pat Willener wrote:
>
>> I have also asked in the Outlook group if the program that displays
>> source text could be changed (e.g. to Frontpage), but it seems that
>> nobody knows how to do that.

>
> 1. You could change the extension on the email or copy there of to HTM and
> set Frontpage or whatever as default for that extension. Of course, setting
> Frontpage as the default for that extension would be a nuisance when using
> other HTM documents so...
>
> 2. You could create a new extension, set it to use Frontpage and change your
> email to *that* extension or...
>
> 3. Just use "open with"


Thank you for your suggestion. A bit complicated, and does not work with
Frontpage, but it *does* work with Word, when I specify the correct
encoding to open it with.

I do not need this very often, so your suggestion will do nicely.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to open a unicode file in Notepad with the correct script Randem Windows XP General 4 16th Jun 2009 03:03 AM
NOTEPAD and unicode William Windows XP General 1 18th Oct 2007 12:47 PM
a UNICODE notepad by default? *rain*drops* Windows XP Customization 2 25th Apr 2007 08:06 PM
How to setup Notepad in fullscreen mode open Adi Windows XP General 7 25th Mar 2007 04:37 PM
Outlook 2003--How can I switch between unicode and non-unicode mode? Steve A. Microsoft Outlook 1 20th Jul 2004 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:06 PM.