SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: UTF-8 / accented characters

  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
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,959
    Mentioned
    216 Post(s)
    Tagged
    2 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
    SitePoint Award Recipient Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,101
    Mentioned
    66 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...
    Any posts I write in Arial are on my mobile phone, so please excuse typos etc.
    Any posts I write in Verdana are on a PC, so feel free to berate me mercilessly for any mistakes


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
  •