Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4008214
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:43:37+00:00 2026-05-20T08:43:37+00:00

Say that you have a XHTML document in English but it has accented characters

  • 0

Say that you have a XHTML document in English but it has accented characters (e.g. meta name="author" content="José"). Let’s say you have no control over the HTTP headers.

  1. Should the characters be replaced for their corresponding named entities (e.g. á, etc)?

  2. Should the xml:lang attribute be set to English?

I know I can check the W3C recommendation but I am asking more from a practical point of view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:43:38+00:00Added an answer on May 20, 2026 at 8:43 am

    Should the characters be replaced for their corresponding named entities (e.g. á, etc)?

    Since you can’t control the HTTP headers (and thus the declared character encoding) you should encode everything using ASCII (since it is a safe subset of just about everything).

    This will require that you use entities for anything that isn’t in ASCII. Named ones are preferred (as they are easier for people editing the HTML to handle) but not required.

    Should the doc type and the xml:lang attribute be set to English?

    The EN in the Doctype is a reference to the language that the comments in the DTD are written in. The HTML 3.x / 4.x and XHTML 1.x Doctypes must always use EN.

    The lang attribute (and additionally the xml:lang attribute) should specify the language that the content is written in. If that is English, then it should be English.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that you have the following Facelet ( Using Facelets 1.1.12 ): edit_item.xhtml
Say that I have an article with multiple pages. Each page has a short
Say that I have a DrawingBrush that has three colors hard-coded, i.e. a border,
Let's say I have the following table in my XHTML page: <tr:table id=listRowsTable var=bb
Let's say that we have a DIV x on the page and we want
Let's say that I have one app that have 1000 concurrent users. What's the
Say that I have an immutable Point class with x and y parameters, and
Say that I have a data model called Widget . If I pick one
Say that you have a loop and depending on the outcome of the loop
Say that i have a generic dictionary with data like this (I hope the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.