Solved

Apostrophe in html text??

Posted on 1997-11-08
17
883 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstrap input box width 2 33
Can't get the PDF Icon to appear on the webpage 1 21
[HTML] Graphic not centered on page 4 44
Enter key on html form page 11 42
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

939 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now