Discussion:
Create a file with "Japanese(Shift-JIS)" encoding
(too old to reply)
vivek kumar
2021-02-04 07:21:02 UTC
Permalink
My question,
When the file is in Shift-JIS format, and if we open it in
MS Word 2K / Word Pad, does it throw a window saying that
"This file has Shift-Jis encoding blah , blah ... ?".
( i think it does)
For Word 2K you should go to "Tools | Options" in the "General" tab and
check "confirm conversion at Open". When asked about the file type, select
"Encoded Text File" and you will get the dialog about encoding.
Otherwise the file is treated as a text file using the default system
encoding (1252 if you are on a US system).
Mihai
the dll 'System.Text.Encoding.CodePages.dll' can be downloaded from Microsoft.
then add add the below codes, it shall work.

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Encoding enc = Encoding.GetEncoding("Shift-JIS");

Thanks,
Vivek
😉 Good Guy 😉
2021-02-04 14:27:39 UTC
Permalink
Post by vivek kumar
My question,
When the file is in Shift-JIS format, and if we open it in
MS Word 2K / Word Pad, does it throw a window saying that
"This file has Shift-Jis encoding blah , blah ... ?".
( i think it does)
For Word 2K you should go to "Tools | Options" in the "General" tab and
check "confirm conversion at Open". When asked about the file type, select
"Encoded Text File" and you will get the dialog about encoding.
Otherwise the file is treated as a text file using the default system
encoding (1252 if you are on a US system).
Mihai
the dll 'System.Text.Encoding.CodePages.dll' can be downloaded from Microsoft.
then add add the below codes, it shall work.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Encoding enc = Encoding.GetEncoding("Shift-JIS");
Thanks,
Vivek
Vivek,

You responded to a 2002 post and Mihai might not even be here or he may
have died of Chinese virus.

How is India doing as far as Corona Virus is concerned.  Is Modi doing
anything constructive or is he occupied with the farmers' dispute?
--
With over 1.2 billion devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
Continue reading on narkive:
Loading...