Compiling MC file in Unicode format

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: kohtk (kohtk_at_discussions.microsoft.com)
Date: 08/20/04


Date: Fri, 20 Aug 2004 02:53:02 -0700

Hi,

I have an urgent problem here with regards to MC files.

I have created a .mc file which contain messages in English, Japanese,
Chinese, etc. According to the example given on Microsoft website
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/sample_message_text_file.asp),
the file is stored in Unicode (UTF-8) format, so if I view the file using a
Unicode-compatible editor, I can actually see the messages in its respective
languages.

Now, according to Microsoft documentation, I should be able to now compile
the .mc file and then generate different language resource strings. However,
I encounter an error when I try to compile the .mc file as follow:
> mc -u sample.mc

The error returned is:
     "MC: -u switch cannot be used with non-Unicode message file!".

This does not seem right since my file is already in Unicode format. Does
anyone have any idea what is wrong?

In addition, I would like to know what is the encoding format of the output
messages stored in various generated *.bin files using the command above.
E.g. are the messages in Msg0411.bin (Japanese) file stored in "Shift-JIS"
format, or in "Unicode (UTF-8)" format (same as .mc file)?

Is there any difference in the generated *.bin files if I now compile .mc
with this additional option: E.g. > mc -u -U sample.mc

Using the FormatMessage() call, for each of the above cases (i.e. with or
without -U option to output in Unicode), what LangID should I supply in order
to display the messages in the correct language?
 
Thanks in advance for any help!

TK



Relevant Pages

  • Re: Attention: European C/C++/C#/Java Programmers-Call for Input
    ... I have worked up a plan to merge PhiText with Unicode. ... This will make it a useful tool for file format conversion. ... its main focus will be for writing source code in the ... for writing source code in any language based on Unicode. ...
    (comp.arch.embedded)
  • =?windows-1252?Q?Encrypting_Unicode_=96_Using_ASCII_as_a_Surrogate_Al?= =?windows-1252?Q?pha
    ... characters of an exotic eastern language using an ASCII keyboard. ... It is true to say that any keyboard of any language can be simulated ... communicate in large volume with China or Japan using CJK from Unicode ... by the computer as an external file and enciphered by a stream cipher ...
    (sci.crypt)
  • Re: Enhanced Unicode support for "Go" tools
    ... Can someone explain why unicode is needed at all? ... Windows itself is fully UNICODE (NT-based ... "Specials", Linear B syllabary / ideograms (ancient language, ... Drop some Thai poetry into and try ...
    (alt.lang.asm)
  • Re: Thesaurus Problem
    ... files by using text editor tools, the files must be saved in Unicode format ... RelevantNoise.com - dedicated to mining blogs for business intelligence. ... be saved as a Unicode file. ... FROM FullDocuments ...
    (microsoft.public.sqlserver.fulltext)
  • Re: SBS 2003 Standard/Exchange Server issue
    ... To enforce Unicode mode in Outlook ... load the Outlook 2003 template. ... Double-click Exchange Unicode Mode - Ignore Archive Format. ... Double-click Exchange Unicode Mode - Ignore OST Format. ...
    (microsoft.public.windows.server.sbs)