Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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..

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,912
    Thanks
    15
    Thanked 227 Times in 227 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •