vivek kumar
2021-02-04 07:21:02 UTC
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 andWhen 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)
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
then add add the below codes, it shall work.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Encoding enc = Encoding.GetEncoding("Shift-JIS");
Thanks,
Vivek