Solved

Apostrophe in html text??

Posted on 1997-11-08
17
886 Views
Last Modified: 2013-12-03
How do I place an apostrophe in my text of my homepage without it being translated into some foreign symbol once it is on the web.  I thought maybe it was the font I was typing my html doc in, but I've tried other fonts and it still happens.
0
Comment
Question by:Maddy
  • 4
  • 4
  • 3
  • +4
17 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1841831
like 'this'
0
 
LVL 6

Expert Comment

by:alamo
ID: 1841832
Should be nothing special happening to the apostrophes, could you give us a URL which illustrates the problem? Does it look the same when viewed from other computers? Makes me wonder if there is something funny about your system which makes you have problems displaying apostrophes.
0
 
LVL 1

Expert Comment

by:wilfrieds
ID: 1841833
Did you open a < bracket somewhere before to create a link and forgot to close it?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 6

Expert Comment

by:Holger101497
ID: 1841834
Well, there seems to be some vagueness as to which character you mean. Are you talking about the "single quotes" ozo typed? I agree that there should be nothing happening to ' and ` characters.

I guess you mean the "nicer" apostrophes like "don´t"? (They might be "standard" depending on your keyboard) Try character code &acute; instead and see if it helps.

One thing will (almost) definitely solve your problem if you are using Netscape: Open the built-in HTML Editor, type the characters you mean, save the page, open it in Notepad and check how it saved them. Netscape automatically converts all "non-standard" characters to their proper representation in &entities;
You don't have to create your document in Netscape (I don't), but it shows you the proper representation of the characters.

Good luck and let me know if this comment helped...
0
 
LVL 84

Expert Comment

by:ozo
ID: 1841835
´this´ also displays with no problem in HTML, as you can see on this page.
'´` all display ok, (at least in an iso-8859-1 font)                                         ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
0
 

Author Comment

by:Maddy
ID: 1841836
The type of apostrophe I mean is the one in contractions like "Don't"  In place of the apostrophe I get something that lookds like a Greek letter. I took it off the page once I realized it wasn't being displayed correctly so I can't show you now.  I am going to try the &acute.  Do I type &acute in place of the ' without any tags?  ie: didn&acutet
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841837
For the special characters, it is &acute; including the semicolon. I agree with ozo that the straight single quotes should be ok, there's not even a special code for them. The ´ is not necessarily ok. As long as all of our PCs have more or less the same settings, we can't see what might happen somewhere else. If the ' appear as Greek characters on your own computer, there's most likely something wrong with your settings. Well, somebody in the world will probably have these settings (why else would they exist?), so the &acute; is always the "better" things to do. The line ozo typed would look like a complete chaos for somebody in Japan, while &auml; should be displayed as "ä" anywhere in the world.
0
 

Expert Comment

by:p_reynolds
ID: 1841838
The problem is because your program that your typing the HTML in is using smart quotes. Smart quotes are the kind of quotes that automatically curl towards the quoted statement. You could either use a straight text program like SimpleText or WordPad. Or be sure you Save as... ASCII or just text whatever options it gives you. Hope this helps!
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841839
Which program that generates an HTML-page would use "smart quotes"??? I think that programs that generate HTML-pages (including the tags etc.) also replace special characters by the proper &entities;
If Maddy uses some word-processor and doesn't save as plain text, the page wouldn't be readable in a browser in the first place!

Still: which program do you use to generate your page, Maddy? Could you maybe post a short page that causes the problem somewhere on the web? (don't post it here, Expert-Exchange automatically replaces certain characters to make them display properly)
0
 

Expert Comment

by:p_reynolds
ID: 1841840
Not true, entirely. BBedit would gladly save smart quotes to a plain text file. But they would be system-specific characters and come across as funny symbols in a browser. However, I do agree WYSIWYG programs should output encoded characters. *All* of them have major shortcomings if you ask me.
0
 

Author Comment

by:Maddy
ID: 1841841
As per your request, I posted the problem text on my homepage until I can fix it.  It is located at http://www.beth.k12.pa.us/schools/east_hills/team_info/gr6/sgodiska.html#Class Author  You may need to scroll down a bit.  It is the 3rd descriptive I did try the Simple Text solution but it doesn't appear to be working.  I intend to try the &acute;
Thanks
0
 
LVL 1

Accepted Solution

by:
pscroggs earned 200 total points
ID: 1841842
Try this: (if your word is ... don't)
don&#146;nt
0
 
LVL 84

Expert Comment

by:ozo
ID: 1841843
You're using Õ, (&#213;) you want ´ (&#180;) or ' (&#39;)
(like up at the top where you have "Godiska's Class")
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841844
Hey pscroggs!
I think there were several suggestions in the posted comments that should be considered as answers first, don't you think? Specifically, my first comment suggested both the use of entities like &acute; (well, &#146; is just a different one, but definitely the same idea) and a solution for solving this and any related problems by using the Netscape-Editor (Have you tried that suggestion, Maddy)? If either one of those suggestions solves the problem, that comment should be accepted as an answer.

btw, Maddy: Which program did you use to create the file? Make sure its characterset is set to "Western (ISO-8859-1)" like in Netscape. It is surprising that only "some paragraphs" are afected. Did you maybe *import* the affected paragraphs from some other program by using cut&copy? If you open the page in Notepad and replace the wrong characters by plain ', that should also work!
0
 
LVL 84

Expert Comment

by:ozo
ID: 1841845
And what font is &#146; supposed to be in anyway?
0
 

Expert Comment

by:p_reynolds
ID: 1841846
This happened to me before when moving text files from a proprietary publishing system to a Unix workstation through a Mac gateway. Basically, the file was coming across in hex and a program (extension) on the Mac converted the characters to ASCII equivalents. Ths was fine and dandy except the quotes were being converted to curly "smart" quotes. Then all of the pages on the Unix box displayed apostrophes as Õ and quotes as ÕÕ. The solution was to change the conversion tables on the conversion program to make the quotes straight quotes. But in SimpleText and BBedit on the Mac, they looked fine. A system specific character is being printed in this mysterious program maddy is using.
0
 

Author Comment

by:Maddy
ID: 1841847
Thanks,  I'm sure I'll run into something like this again. I'm really a true novice.  In response to some of your questions: This page was typed in ClarisWorks and saved as plain text then I used Winsock FTP to transfer.( I origionally typed in on a pc, but at school we use Macs, so when I ran into this problem, it was being saved as .html and transferred using Anarchie.)  If I open it in or copy and paste into BBedit Lite will I be ok next time???? Or how can I get Western font in my ClarisWorks program?
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question