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 8388915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:34:48+00:00 2026-06-09T18:34:48+00:00

I make multilanguage webpage, I use HTML5 and I get error why I try

  • 0

I make multilanguage webpage, I use HTML5 and I get error why I try to validate in W3C:

Line 4, Column 11: No explicit character encoding declaration has been seen yet (assumed utf-8) but the document contains non-ASCII.

<title>Viešbutis Graikijoje</titl…

..however my header contains utf-8 charset:

<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $title?></title>
<meta name="robots" content="index, follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

I read other posts, it says you need use utf-8 charset, but I do use it.. I also tried put

    AddType 'text/html; charset=UTF-8' html

..in .htaccess file, but it does not working. Any ideas?

  • 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-06-09T18:34:50+00:00Added an answer on June 9, 2026 at 6:34 pm

    You have non-ascii characters in the <title>, but your <meta> tag declaring the document to be UTF8 has not yet appeared.

    Move the content type <meta> tag to the first element in the <head>:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?php echo $title?></title>
    <meta name="robots" content="index, follow" />
    

    While the AddType directive in the .htaccess is good idea if (and only if) every single document with a .html extension served from that directory is HTML with a character set of UTF8, the W3 Validators will still want you to explicitly declare the character set in the document.

    Also note that when writing XHTML, they will permit you to declare it in an XML declaration:

    <?xml version="1.0" encoding="utf-8" ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Make it on Linux. The reason to use more than one version of Vim,
i make one class file for jar. and this class have use wurfl. and
Possible Duplicates: Create a webpage with Multilanguage in PHP PHP - how to translate
So to support multilanguage on the site I need to make sure all data
Make javaScript and CSS External Source . Does that mean I should use JavaScript
I am using this multilanguage addon http://codeigniter.com/wiki/CodeIgniter_2.1_internationalization_i18n to make available my codeigniter sites in
To make my code flexible I would like to find a way to get
I make some game, I use I lot of graphics. I make class that
To make div s clickable I use this: $(.clickable).click(function (event) { window.location = $(this).find('a').attr('href');
I implemented a multilanguage feature for my web application. I get the values by

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.