Results 1 to 3 of 3

Thread: Validation of document containing 'foreign' characters

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,875
    Thanks
    49
    Thanked 263 Times in 255 Posts
    Blog Entries
    56

    Default Validation of document containing 'foreign' characters

    This validates:
    Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title></title>
    </head>
    <body >
    e
    </body>
    </html>
    but this cannot be validated ('Sorry! This document cannot be checked'):
    Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title></title>
    </head>
    <body >
    
    </body>
    </html>
    I always thought that utf-8 takes care of 'foreign' characters.
    Last edited by molendijk; 01-10-2013 at 11:25 PM. Reason: Resolved

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Validates just fine here:

    http://home.comcast.net/~jscheuer1/side/eacute.htm

    I think you may have saved the page in ANSI encoding. That won't validate. In order for a page containing "High ASCII" characters to validate as UTF-8, it must be saved as UTF-8. Notepad allows you to change the encoding in its "Save As" dialogue. NotePad++ allows you to switch between various encodings virtually at will, as well as to set a default encoding for various file types and/or all file types. Other editors may or may not have similar options.

    Further proof would be if you published your page, the eacute character would probably not render correctly.

    BTW, in ANSI encoding, the eacute that will validate as UTF-8 looks like so:

    é
    It's a 2 byte character.


    Another possibility is that your server is overriding the encoding set on the page. That's another issue.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    molendijk (01-10-2013)

  4. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,875
    Thanks
    49
    Thanked 263 Times in 255 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by jscheuer1 View Post
    In order for a page containing "High ASCII" characters to validate as UTF-8, it must be saved as UTF-8.
    That was the exact problem. Thanks very much.

Similar Threads

  1. PHP/Mysql foreign key fill
    By evas in forum PHP
    Replies: 0
    Last Post: 06-01-2011, 06:01 PM
  2. Replies: 5
    Last Post: 09-27-2009, 11:50 PM
  3. Display value using a Foreign Key
    By ignitedintelligence in forum PHP
    Replies: 3
    Last Post: 06-23-2009, 05:56 AM
  4. Replies: 2
    Last Post: 02-26-2007, 12:02 PM
  5. Max. Columns & Foreign Keys
    By real_estate in forum MySQL and other databases
    Replies: 1
    Last Post: 08-09-2006, 04:38 AM

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
  •