Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   registered trademark symbol in C++ source code (http://www.velocityreviews.com/forums/t746224-registered-trademark-symbol-in-c-source-code.html)

Brad Tilley 04-02-2011 02:39 PM

registered trademark symbol in C++ source code
 
Using standard C++ source code that I compile using gcc on Linux/
Windows and Mac, the registered trademark symbol \x00AE works
everywhere except Mac OS X. The really odd thing is that all the other
symbols (copyright, etc.) work fine on all platforms. Has anyone every
ran into this and know of a fix for it?

\x00A9 (copyright symbol - works fine in C++ source code everywhere)
\x00AE (registered trademark - works fine in C++ source code
everywhere but Mac OS X)

On the Mac, \x00AE seems to output \x00C6 (that's what it looks like
at least).

Thanks for any tips.

Nobody 04-03-2011 03:24 PM

Re: registered trademark symbol in C++ source code
 
On Sat, 02 Apr 2011 07:39:58 -0700, Brad Tilley wrote:

> Using standard C++ source code that I compile using gcc on Linux/
> Windows and Mac, the registered trademark symbol \x00AE works
> everywhere except Mac OS X. The really odd thing is that all the other
> symbols (copyright, etc.) work fine on all platforms. Has anyone every
> ran into this and know of a fix for it?
>
> \x00A9 (copyright symbol - works fine in C++ source code everywhere)
> \x00AE (registered trademark - works fine in C++ source code
> everywhere but Mac OS X)
>
> On the Mac, \x00AE seems to output \x00C6 (that's what it looks like
> at least).


Something is interpreting the data as being in the MacRoman encoding.

http://en.wikipedia.org/wiki/MacRoman

In ISO-8859-1 and Unicode, \xA9 is the copyright symbol, \xAE is the
registered trademark symbol, \xC6 is upper-case AE ligature.

In MacRoman, \xA9 is the copyright symbol, \xA8 is the registered
trademark symbol, \xAE is upper-case AE ligature.

It's impossible to say where the confusion lies because you don't provide
any information about how the data actually appears in the code or
what you're doing with it.



All times are GMT. The time now is 08:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57