SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    East of Ottawa, ON
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    UTF-8 / accented characters

    when using utf-8 encoding, do you have to use the escape characters é or can you just use ,, ect...?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,207
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    The purpose of UTF-8 is that you can just use the characters themselves, without the encoding.

  3. #3
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    In UTF-8, the only characters that need to be escaped are &lt;, &amp; and &quot;, everything else should work fine with just the characters themselves. I say "should" because what you need to be sure is that the editor you're typing in really is saving the file with UTF-8 encoding. The web is littered with buggy pages where someone has put a <meta charset> in with UTF-8 but not realised their editor is saving it in Windows-1252...


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
  •