Re: How does RC file store double-bytes chars ?



Thanks.

Is MBCS same as UTF-8 (also mixed length chars)? The leading bytes do not
indicate such.

Is there a way to identify a file with MSCS format?

Polaris

"Tom Serface" <tserface@xxxxxxx> wrote in message
news:uBpayYBWGHA.436@xxxxxxxxxxxxxxxxxxxxxxx
Older RC files are MBCS which means they will be dependent on the code
page loaded. For example, if you edit your Chinese RC while using a
Western (English for example) regional setting you will mess it up when
you save it. I alway change to the region I'm editing before making any
changes just to be sure.

2005 seems to work OK with Unicode RC files. The older IDE would complain
that the file was already in use if/when you tried to open it in the
resource editor.

Tom

"Polaris" <etpolaris@xxxxxxxxxxx> wrote in message
news:uSNLK$AWGHA.6000@xxxxxxxxxxxxxxxxxxxxxxx
Hi Experts:

I'm using Visual Studio 7. I have a RC file where many double-bytes chars
are stored (Chinese Characters).
I was thinking that the rc file must be either UTF-16 or UTF-8, but by
examining the file in binary editor, its leading bytes do not indicate
either UTF-16 (0xFFFE), nor UTF-8 (0xEFBBBF).

Any explanation is appreciated.

Thanks in Advance !
Polaris





.



Relevant Pages

  • Re: Fedora, unicode, console
    ... > to get UTF-8 enabled in console? ... *all* the Unicode characters: Fedora has chosen a good one, ... > has not all UTF-8 chars, ... Well, in vim, if you know the Unicode reference, try ...
    (Fedora)
  • Re: How to clean an xml files from non-utf-8 chars?
    ... anything else that relies on the xml files being utf-8. ... module UTF8 ... All chars that are not valid utf8 char sequences will be ...
    (comp.lang.ruby)
  • Re: replace chars
    ... > Yes I think that it might not be any standard transforming algorithm> for ... > I hope I won't have any issues, because the chars are UTF-8. ... Perl strings are in UTF-8*, but if you want to specify a character ... I have also seen that length($string) returns the number of bytes of $string, and not the number of chars. ...
    (perl.beginners)
  • Re: Document encoding
    ... the charset to utf-8 after that in editor. ... used if you're using a real text editor, ... chars in those formats are represented by entities like é ... Unix: \n means EOL ...
    (comp.os.linux.misc)