Special characters: (TM), (R)

I need to output a company name and legal requires that we put the
circle R after the name as in Zowcorp®. In some other cases we need
the trademark ™ symbol.

I did this to try to find them:

(0…255).each {|i|
puts i.to_s+" "+i.chr
}

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML you
use ® and �

Phil

Phil Tomson wrote:

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML you
use ® and �

puts 174.chr gives me a little ® symbol that’s rather difficult to
read, and puts 153.chr gives me a dotted square - so I guess it
depends on what terminal font you’re using. I assume you’re wanting to
do this in a terminal window? The answer probably is that there’s no
guaranteed portable way to do it except for “®” and “™”.

Tim.

···


Tim Bates
tim@bates.id.au

Hi!

  • Phil Tomson:

I need to output a company name and legal requires that we put the
circle R after the name as in Zowcorp®.

In my complete list of ISO 8859 charsets I only find ® in

ISO 8859-1 (West Europe)
ISO 8859-8 (Hebrew)
ISO 8859-9 (Turkish)
ISO 8859-13 (Baltic Rim)
ISO 8859-14 (Celtic)
ISO 8859-15 (West Europe)

ISO 8859-2 through -7 and -9 through -11 (-12 does not exist) don’t
contain it.

In some other cases we need the trademark ™ symbol.

™ cannot be found in any of the ISO 8859 standard charsets. It
also cannot be found in any of the DOS codepages, EBCDIC codpages or
ISO 646 charsets I know (and I am quite sure to know all of them).
The only charsets I found them in are Windows codepages and Unicode.

Unfortunately my knowledge of ISO 2022 is by far too limited to make
a statement about the codes defined by it.

Josef ‘Jupp’ SCHUGT

···


E-Mail: .— …- .–. .–. .–.-. --. – -…- .-.-.- -… .
http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby FAQ
http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge
.- .-.

Vaguely related (and important for everyone to read, IMO):

"The Absolute Minimum Every Software Developer Absolutely, Positively
Must Know About Unicode and Character Sets (No Excuses!)"

···

On Mar 5, 2004, at 8:03 PM, Tim Bates wrote:

Phil Tomson wrote:

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML you
use ® and �

puts 174.chr gives me a little ® symbol that’s rather difficult to
read, and puts 153.chr gives me a dotted square - so I guess it
depends on what terminal font you’re using. I assume you’re wanting to
do this in a terminal window? The answer probably is that there’s no
guaranteed portable way to do it except for “®” and “™”.


(-, /\ / / //

I think you’re right. Now that I’m on a LInux box I see the ® char
(puts 174.chr) but I don’t see the ™ symbol (puts 153.chr).
Previously, I was trying this on Windows and saw neither of them.

Phil

···

In article 40493EF5.7060307@bates.id.au, Tim Bates tim@bates.id.au wrote:

Phil Tomson wrote:

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML you
use ® and �

puts 174.chr gives me a little ® symbol that’s rather difficult to
read, and puts 153.chr gives me a dotted square - so I guess it
depends on what terminal font you’re using. I assume you’re wanting to
do this in a terminal window? The answer probably is that there’s no
guaranteed portable way to do it except for “®” and “™”.

I wouldn’t use ® and ™. I have read in various places that © is
NOT a legal alternative to a C with a circle around it. I can only
assume that is applies to ® and ™ also. A quick google search gave
me this page (http://www.templetons.com/brad/copymyths.html) which has a
short blurb about it at the end of question one. More searching can
probably find something with a little more detail.

···

On Sat, Mar 06, 2004 at 12:03:38PM +0900, Tim Bates wrote:

Phil Tomson wrote:

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML you
use ® and �

puts 174.chr gives me a little ® symbol that’s rather difficult to
read, and puts 153.chr gives me a dotted square - so I guess it
depends on what terminal font you’re using. I assume you’re wanting to
do this in a terminal window? The answer probably is that there’s no
guaranteed portable way to do it except for “®” and “™”.


Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc

Hi,

Phil Tomson wrote:

But I didn’t find them in there… Which makes me wonder if it’s even
possible to output them this way. I know that to get them in HTML
you
use ® and �

puts 174.chr gives me a little ® symbol that’s rather difficult
to read, and puts 153.chr gives me a dotted square - so I guess it
depends on what terminal font you’re using. I assume you’re wanting
to do this in a terminal window? The answer probably is that there’s
no guaranteed portable way to do it except for “®” and “™”.

It looks like a character encoding issue… When I set my terminal to
use the “Western (Windows Latin 1)” encoding, I can do this:
>> 174.chr.display
®=> nil
>> 153.chr.display
™=> nil
But with it set to unicode (the way I usually have it), it give nice
little question marks instead of characters. I think Tim is right, in
the terminal, you may want to use ® and ™. If you are using it in
a cgi script, though, just set the character encoding correctly and you
should be okay.

···

On Mar 5, 2004, at 8:03 PM, Tim Bates wrote:

On Mar 5, 2004, at 7:56 PM, Gavin Kistner wrote:

Vaguely related (and important for everyone to read, IMO):

"The Absolute Minimum Every Software Developer Absolutely, Positively
Must Know About Unicode and Character Sets (No Excuses!)"
http://www.joelonsoftware.com/articles/Unicode.html

Hey! great link! I’d been meaning to read up more on unicode, but
hadn’t found enough information in one place… I read the first bit,
and it looks good (and it’s not too dry, either).

–Mark

Hi!

  • Zachary P. Landau:

I wouldn’t use ® and ™. I have read in various places that ©
is NOT a legal alternative to a C with a circle around it. I can
only assume that is applies to ® and ™ also.

Wether © is acceptable or not depends on the country. In Germany it
makes no difference wether you use ©, the copyright symbol or none
of them - they are simply not needed and the copyright notice rather
is a reminder than something of legal importance.

Instead of playing around with symbols that may or may not display
correctly I would simply write it out:

“Linux” is a registered trademark of Linus Thorvalds.
“Heroine” is a trademark of Bayer (well, AFAIK it originally was).

Josef ‘Jupp’ SCHUGT

···


E-Mail: .— …- .–. .–. .–.-. --. – -…- .-.-.- -… .
http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby FAQ
http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge
.- .-.

Josef ‘Jupp’ SCHUGT wrote:

“Heroine” is a trademark of Bayer (well, AFAIK it originally was).

Assuming that you mean the drug, that’s “Heroin”, in either German or
English. “A heroine” auf Englisch ist “eine Heldin” auf Deutsch.

···


John W. Kennedy
"But now is a new thing which is very old–
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor’s sake."
– Charles Williams. “Judgement at Chelmsford”

Hi!

  • John W. Kennedy:

Josef ‘Jupp’ SCHUGT wrote:

“Heroine” is a trademark of Bayer (well, AFAIK it originally was).

Assuming that you mean the drug, that’s “Heroin”, in either German or
English. “A heroine” auf Englisch ist “eine Heldin” auf Deutsch.

Sorry, I was a bit confused because in German ‘Heroine’ means an
actress who plays the part of some heroine while ‘Heroin’ usually is
used as a synonym for ‘Heldin’ but can also be used as a synonym of
’Heroine’. Anyway, it’s just examples and I don’t actually know which
spelling was used for the trademark.

Josef ‘Jupp’ SCHUGT

···


E-Mail: .— …- .–. .–. .–.-. --. – -…- .-.-.- -… .
http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby FAQ
http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge
Fatal error: ICMP type 3, code 4 while accessing msft.biz .-.-.