Re: Extra Character when doing File::WriteLine by Igor
Igor
Tue Apr 11 15:28:26 CDT 2006
john@sawyersnet.com wrote:
> When the following code is writes to the file I get an extra
> character...
>
> outSW->WriteLine(S"BTC Networking\xAE");
>
> I'm wanting to put the "registered trademark" symbol (\xAE) on the end
> of the line. It does write to the file, but I get the character \xC2
> in front of the \xAE symbol also which I do not want.
UTF-8 representation of Unicode codepoint U+00AE happens to consist of
two bytes C2 and AE. This is what you see in your file. Chances are, you
actually want it this way.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925