SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2011
    Location
    Hull, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Character encoding issue

    Hi,

    I'm working on a page that has text surrounded with ' ' marks. The problem is that on the live site these marks change to ’.

    The charset is set to utf-8 and when I add text into the CMS it is not changing the ' to a unicode character. The part I am trying to change however is hard coded into a template.

    Can anyone shed any light on this for me please?

    The point in question is bold text on the left hand side of the page at http://www2.hull.ac.uk/administration/jobs.aspx

    Many thanks,

    Jonno

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,389
    Mentioned
    218 Post(s)
    Tagged
    5 Thread(s)
    I'm not sure if this is your issue, but I've found if I copy and paste stuff sent to me by clients, I almost always have problems with any 's that occur. I suspect they're all using MSWord or something that automatically converts ' to "Smart quotes", or something. The simplest solution I've found is to do a find-and-replace in my text editor before I do anything else. It solves the problem every time.
    Don't be arrogant. Be kind to a koala that thinks it's a bear.

  3. #3
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,234
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    when I add text into the CMS
    -- what are you using to add text? Which program, what character set is it set to, and how does the CMS save entered text?
    -- how is the server serving the page? (regardless of any meta tags in the HTML, the server rules all)

    From what I can see, this is a Microsoft IIS server running ASP.NET in the back and serving pages as UTF-8. This leaves me to believe your trouble is purely on your end (either the CMS, the editor within the CMS, the editor you add text to before it gets entered into the CMS, or wherever you are copying text from if you are copying anything). Which is good, I think, because I expect those are easier for you to set correctly than the server unless you have privs/ are a sysadmin.


Tags for this Thread

Bookmarks

Posting Permissions

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