homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Charset and Meta in HTML5
toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 11:32 am on Feb 5, 2014 (gmt 0)

I have currently: <meta charset="UTF-8">
Will be damaged all characters if I set <meta http-equiv="content-type" content="text/html; charset=UTF-8">


I have format: UNIX and UTF-8 encoding for all pages.

 

swa66

WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4642586 posted 12:51 pm on Feb 5, 2014 (gmt 0)

<meta charset="UTF-8">
is for HTML5 and xhtml5
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
is for older stuff.

New pages should be html5 or xhtml5, not the older obsolete stuff anymore. No browser out there needs us to generate anything old.

I'd make sure my pages are valid html or xhtml, the rest will sort itself out.

drhowarddrfine

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 1:42 pm on Feb 5, 2014 (gmt 0)

And unless you are serving your pages as 'application/xml+xhtml', and you probably are not, you shouldn't be using XHTML either.

swa66

WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4642586 posted 4:20 pm on Feb 5, 2014 (gmt 0)

and you probably are not

Speak for yourself: I do serve polyglot html5 as xml on any new project I do.

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4642586 posted 5:22 pm on Feb 5, 2014 (gmt 0)

swa66, most people do not.

drhowarddrfine

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 5:27 pm on Feb 5, 2014 (gmt 0)

@swa66 Yes, I did at one time, too, but as @Fotiman pointed out, most people don't and I'd almost bet money @toplisek doesn't either.

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 2:43 pm on Feb 6, 2014 (gmt 0)

I have and issue that search engine reported me to use
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
as they have issue with queries and showing special characters.

drhowarddrfine

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 6:51 pm on Feb 6, 2014 (gmt 0)

Both meta types are equivalent and work in all browsers. Looks like your search engine is the problem.

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 8:28 am on Feb 7, 2014 (gmt 0)

Will be mistake if I use both of them and all characters will be correctly seen?
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> will be seen by search engine and <meta charset="UTF-8"> for all other

drhowarddrfine

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 3:52 pm on Feb 7, 2014 (gmt 0)

I don't think anything will break but it's duplicated effort.

What search engine is this?

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4642586 posted 5:04 pm on Feb 7, 2014 (gmt 0)

I'm sorry but it is hidden. What is actually wrong with search engine that characters are not working?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved