Results 1 to 11 of 11
  1. #1


    Member Since
    May 07, 2010
    Location
    UK
    Posts
    515
    Specs:
    2 21.5" iMacs 3.06 GHz Intel Core i3 500 Gb HD OS X 10.12.1 ; 2 iPads iOS 9.3.5 iPhones 4s iOS 9.3.5
    Keyboard apostrophe not recognised in HTML
    I'm learning the basics of HTML and am finding that the standard Apple keyboard apostrophe gets converted into something like this @. I am using TextEdit formatting in plain text. There is a cumbersome way round the problem by inserting the apostrophe from the special character set.

    There seems to be a similar problem with { and } for defining fonts but I haven't found a way round that.

  2. #2

    mrplow's Avatar
    Member Since
    Oct 01, 2007
    Location
    UK
    Posts
    6,933
    Specs:
    27" iMac i7 (2011) 10.11, Mac Mini i5 (2014), iPhone7, Apple Watch, iPad Pro 9.7, AppleTV (4)
    What language do you have your Mac set to? Does this match the country it was bought in?
    Not been around these parts for a while. Trying to change that . .

    Please use the reputation system if you think you've been helped - bottom left of this post

  3. #3

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,789
    Specs:
    Early 2015 13" rMBP
    Quote Originally Posted by Alwyn View Post
    I'm learning the basics of HTML and am finding that the standard Apple keyboard apostrophe gets converted into something like this @.
    I'm guessing that this has something to do with your keyboard layout. I say this because it works fine with a U.S. English keyboard layout, a layout I know is different from the U.K. one.

    Upon looking, I notice that there are two U.K. English keyboards. Have you tried the one layout that you aren't using (System Preferences > Keyboard > Input Sources)?

    Quote Originally Posted by Alwyn View Post
    I am using TextEdit formatting in plain text.
    Oh you brave soul. Look at using an editor designed for coding such as TextMate or Adobe's Edge Code (both free).
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  4. #4

    mrplow's Avatar
    Member Since
    Oct 01, 2007
    Location
    UK
    Posts
    6,933
    Specs:
    27" iMac i7 (2011) 10.11, Mac Mini i5 (2014), iPhone7, Apple Watch, iPad Pro 9.7, AppleTV (4)
    I'm going to guess you're not using your Apple keyboard or you have US english as the keyboard setting.

    On a UK Apple keyboard using British as the keyboard language all those symbols work fine. The apostrophe is on the same key as ". It's next to the \ key next to Enter. Where as @€ are on the number 2 key
    Not been around these parts for a while. Trying to change that . .

    Please use the reputation system if you think you've been helped - bottom left of this post

  5. #5


    Member Since
    May 07, 2010
    Location
    UK
    Posts
    515
    Specs:
    2 21.5" iMacs 3.06 GHz Intel Core i3 500 Gb HD OS X 10.12.1 ; 2 iPads iOS 9.3.5 iPhones 4s iOS 9.3.5
    Quote Originally Posted by vansmith View Post

    Oh you brave soul. Look at using an editor designed for coding such as TextMate or Adobe's Edge Code (both free).
    Not brave, ignorant. I am told that, if I want to design a website myself, I should use Dreamweaver or similar but it looks expensive and it also looks as if it may not yet be compatible with Mavericks.

  6. #6

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,789
    Specs:
    Early 2015 13" rMBP
    Dreamweaver is probably overkill, especially if you're just learning. Those code editors I mentioned are decent starts and may end up suiting your needs just fine. That said, there are many many code editors out there that are both free and more than sufficient for coding.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  7. #7


    Member Since
    May 07, 2010
    Location
    UK
    Posts
    515
    Specs:
    2 21.5" iMacs 3.06 GHz Intel Core i3 500 Gb HD OS X 10.12.1 ; 2 iPads iOS 9.3.5 iPhones 4s iOS 9.3.5
    Quote Originally Posted by vansmith View Post
    Dreamweaver is probably overkill, especially if you're just learning. Those code editors I mentioned are decent starts and may end up suiting your needs just fine. That said, there are many many code editors out there that are both free and more than sufficient for coding.
    I understand that Snow Leopard had web-creation software called iWeb and that its equivalent is to be found in iCloud.

    Is my informant correct? If so where can I find it?

  8. #8

    mrplow's Avatar
    Member Since
    Oct 01, 2007
    Location
    UK
    Posts
    6,933
    Specs:
    27" iMac i7 (2011) 10.11, Mac Mini i5 (2014), iPhone7, Apple Watch, iPad Pro 9.7, AppleTV (4)
    It last came as part of iLife 11 and it no longer has a current version, in iCloud or otherwise I'm afraid.

    It still works but no saying for how much longer.

    Have a look at everweb - there's a free trial
    Not been around these parts for a while. Trying to change that . .

    Please use the reputation system if you think you've been helped - bottom left of this post

  9. #9


    Member Since
    Mar 25, 2015
    Posts
    7
    Specs:
    13” MBP i5 2.5 GHz, 4GB RAM, OS 10.10.2. iPad Air WiFi 16GB, iOS 8.2.
    Could the character sequence you're seeing be "€™"? If so you have a character encoding error. This article, which helped me with a closely related issue, goes into pretty good detail.

    https://askleo.com/why_do_i_get_odd_..._my_documents/

    [eta] Short version: Try turning off smart quotes when writing code rather than natural-language prose or verse. If you want typographic quotation marks (and use the right single quotation mark as an apostrophe), set your document's character encoding to Unicode for the broadest compatibility and remember not to use curly quotes in HTML code, only in displayable text.

    Hope this helps!

    [edit] Arrrgh, I didn't notice how old this post was. Guess the problem has been resolved one way or another by now. Sorry to bump such an old thread.
    Last edited by Pony Pasture; 03-26-2015 at 07:49 PM.

  10. #10


    Member Since
    Nov 10, 2006
    Location
    Leeds, England
    Posts
    324
    Specs:
    17" Core Duo Macbook Pro
    Are you saying it shows as @€ once you view it in the browser? If so, this is your solution.

    I'd guess you're using latin-1/ISO 8859-1. latin-1/ISO 8859-1 only support 256 characters because it's one byte per character ((8 *2) * (8 *2)).

    There are two solutions:

    1. Instead use the newer UTF-8 character set which can use between 1 and 4 bytes to store a character. UTF-8 can store a whopping 1,111,998 characters. If you set your web page to use a character set like latin-1/ISO 8859-1 when it comes across a character that is represented by more than one byte it mis-renders it into something like @€. To convert to UTF-8 you should be able to set the character encoding in your text editor (set it without BOM as this will only cause you problems) but you also need to set the character set in your web page (instead of what you have there already):

    <meta charset="utf-8" />
    2. Keep the encoding as is but use HTML entities. For example curly quotes (“”) aren't usually part of a single byte encoding but you can instead express then in HTML as &ldquo; and &rdquo;

    I do not recommend option two. For everything, always, always, always use UTF-8. You will save yourself headaches in the future.

    Note UTF-16 and UTF-32 may sound better than UTF-8 but neither can store characters as a single byte so aren't as efficient.

    Always, always, always use UTF-8 for your text documents, database connections, etc.

    If @€ appears within the text editor changing the character encoding should still solve your problem.

  11. #11

    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Keller, Texas
    Posts
    50,278
    Specs:
    Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, Sierra
    Note that the original post was from November 2013.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Apostrophe key broken - replacement?
    By coasterman in forum Apple Notebooks
    Replies: 1
    Last Post: 11-18-2011, 03:25 AM
  2. Keyboard not working/not being recognised
    By Danny66 in forum Apple Notebooks
    Replies: 1
    Last Post: 07-24-2009, 02:35 PM
  3. non functioning apostrophe button
    By henrik2a in forum Apple Notebooks
    Replies: 0
    Last Post: 05-08-2009, 11:40 AM
  4. CD/DVD not recognised on Vista, recognised on Mac
    By Joel_i in forum Running Windows (or anything else) on your Mac
    Replies: 2
    Last Post: 01-24-2009, 04:09 PM
  5. apostrophe key has been replaced by
    By statusflo in forum OS X - Operating System
    Replies: 3
    Last Post: 01-15-2006, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •