473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Replace the registered trademark "®" symbol.

Anyone know how I can remove this symbol from a string. I'm using vi
and do not know how to refer to this symbol in my script.

TIA

Sep 12 '06 #1
3 16669

hsmsi...@gmail.com wrote:
Anyone know how I can remove this symbol from a string. I'm using vi
and do not know how to refer to this symbol in my script.

TIA
Ask in a vi newsgroup?

Sep 12 '06 #2
hs******@gmail.com wrote:
Anyone know how I can remove this symbol from a string. I'm using vi
and do not know how to refer to this symbol in my script.
You could do it like this:
$string = str_replace(chr(174),"");

Overview of the chr() function:
http://no.php.net/chr

ASCII table (look at the "HTML codes" section for the numbers).
http://www.asciitable.com/

--
Kim André Akerø
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Sep 12 '06 #3
Thanks Kim,

What I went ahead and did was convert the string using urlencode and
then used str_replace to replace this string '%27.'

Much appreciated.

Kim André Akerø wrote:
hs******@gmail.com wrote:
Anyone know how I can remove this symbol from a string. I'm using vi
and do not know how to refer to this symbol in my script.

You could do it like this:
$string = str_replace(chr(174),"");

Overview of the chr() function:
http://no.php.net/chr

ASCII table (look at the "HTML codes" section for the numbers).
http://www.asciitable.com/

--
Kim André Akerø
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Sep 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: K McNeil | last post by:
I'm trying to run this query: SELECT * FROM features WHERE food_group_ID = 'Company™' I've tried Company%99, Company™ Company™ and nothing returns. What do I need to pass from a jsp...
2
by: mrwoopey | last post by:
Hi, On my site I have "SomeProduct™", a name with the trademark symbol, in a javascript menu. When the page (js) was refered in classic asp it showed the trademark symbol. Now the page is aspx...
6
by: vigi98 | last post by:
Hello all, Can someone confirme that this: var strURLpiece = "UK & Ireland"; strURLpiece.replace("&", "%26"); replaces all occurrence of the character & by %26 in strURLpiece, ie that...
17
by: lauren quantrell | last post by:
I have an Access application with the name: MyAppName® It has the "®" symbol (ChrW$(&H00AE)) at the end of it. If I remane the application without the "®" symbol, I can use FindWindow to close the...
1
by: Phre2d | last post by:
We are attempting to move a large development project into the .NET age over time. We have a large number of ATL-based COM objects in this project. Following the "Journal Poster" example provided...
3
n8kindt
by: n8kindt | last post by:
simple question: is there a chr() number code for the trademark symbol? i am compiling an email in vba and need to use the trademark symbol when sending it out.
1
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I...
1
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I...
1
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.