Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-10-2010, 09:47 PM   PM User | #1
schleewoon
New to the CF scene

 
Join Date: Nov 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
schleewoon is an unknown quantity at this point
Unicode Characters utf-8

Hi all,
i have problem to enable Unicode chars. This is mz html-css set up:
html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />
<title>Rafting Centar Drina Tara | ponuda</title>

<!-- ////////////////////////////////// -->
<!-- //      Start Stylesheets       // -->
<!-- ////////////////////////////////// -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
....
css:
Code:
@charset "utf-8";
/* CSS Document */
html,body{height:100%}
body{
	font-family:Tahoma, Arial, verdana;	font-size:11px;	
	margin:0 auto; padding:0;
	background-color:#fff;
	color:#979797;
	height:100%;
}
...
and when i try:
Code:
<p> ajdeć</p>
its not working
when i making mistake and not allowing Unicode??
THANKS
i can provide all source files..
schleewoon is offline   Reply With Quote
Old 12-10-2010, 10:18 PM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
Could you provide a link to your test page? Actually part of your test string renders for me, the last symbol show as an accented c. By no means are all fonts equal when it comes to unicode, some don't support it at all, none support all of it, so a great deal depends on what blocks you want to render. Of the common Microsoft fonts Arial give the best support, it should be first on your list, but without knowing what symbols you want to render it would impossible to know what is the best font.
DrDOS is offline   Reply With Quote
Old 12-10-2010, 10:44 PM   PM User | #3
schleewoon
New to the CF scene

 
Join Date: Nov 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
schleewoon is an unknown quantity at this point
sure, here is test page:
http://www.raftingtara.com/sajt6/
and here is link for full source code: link
i cant incule characters like: šđžćč...
thanks for the help
schleewoon is offline   Reply With Quote
Old 12-11-2010, 12:16 AM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
You are not inserting Unicode characters into the document. Set the document coding to ISO-8859-1 (Western Europe) instead; although this does not specifically cover your language, it should prove sufficient.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:01 AM.


Advertisement
Log in to turn off these ads.