Forum Moderators: coopster

Message Too Old, No Replies

problem with unicode

unicode utf8

         

riyadh

7:44 pm on Aug 8, 2010 (gmt 0)

10+ Year Member



hi,
i was trying to develop a unicode based website for the first time, but i am facing problem while i host to my server. its ok in my local server, its working fine when i am saving same page as .html and upload it to same server. any help will be appreciated.

you can look at my website, its on bangla unicode

www.rakhaal.com/index.html
www.rakhaal.com/index2.php

enigma1

6:43 pm on Aug 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi riyadh welcome to the forums.

Is the content pulled from a database or a file? check the format the content is stored with.

riyadh

8:09 am on Aug 11, 2010 (gmt 0)

10+ Year Member



thanks for your reply,content is only written in the page, not from database or file

Matthew1980

9:35 am on Aug 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there riyadh,

Could you post a portion of the php code used to generate the index2.php file so that we can see how you are generating the text? That will give us a clearer picture of what you are doing :)

PS: Welcome to the forums too: [webmasterworld.com ]

Cheers,
MRb

riyadh

4:34 pm on Aug 11, 2010 (gmt 0)

10+ Year Member



thanks matthew


here is my code... total html,just saved as .php




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RAKHAAL</title>
<link href="images/style.css" rel="stylesheet" type="text/css" />

<!-- STEP ONE: insert path to SWFObject JavaScript -->
<script type="text/javascript" src="js/swfobject/swfobject.js"></script>

<!-- STEP TWO: configure SWFObject JavaScript and embed CU3ER slider -->
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("cu3er.swf", "cu3er-container", "935", "200", "9", "expressInstall.swf", flashvars, attributes);
</script>

<style type="text/css">
body {text-align:center;}
#cu3er-container {width:935px; outline:0;}
</style>



</head>

<body>

<div align="center">
<div id="holder">
<table width="100%" border="0">
<!--header-->
<tr>
<td> <div style="border-bottom: solid 1px #333333;">
<table width="100%" border="0">
<tr>
<td width="50%" align="left" valign="top"><img src="images/logo-02.jpg" width="280" height="120"/><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/text.jpg" width="250" height="32" /></td>
<td align="right" valign="bottom"><a href="font.php"><img src="images/font.jpg" border="0"></a></td>


</tr>
</table>
</div>
</td>
</tr>
<!--header-->


<tr>

<tr>
<td id="banner">
<div id="cu3er-container">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>

</td>
</tr>
<!--Menu-->
<td width="20%" align="left" valign="top" bgcolor="#99CC00">
<div id="menu">
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
<li> <a href="">Menu </a></li> |
</div>
</td>
</tr>


<!--middle-->
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" align="left" valign="top" bgcolor="#D1D1D1">






<div id="left-link">
<p><u><font size='4' color='#992222'>দৈনিক পত্রিকা</font></u></p>
<a href="http://amadershomoy.com/"><font size="3">আমাদের সময় | </a>
<a href="http://www.ittefaq.com.bd">ইত্তেফাক | </a><br>
<a href="#">বাংলাদেশ প্রতিদিন | </a>
<a href="http://www.dailykalerkantho.com/">কালের কন্ঠ | </a><br>
<a href="http://www.jugantor.com/">যুগান্তর | </a>
<a href="http://www.shamokal.com/">সমকাল | </a><br>
<a href="http://prothom-alo.com/">প্রথম আলো | </a>
<a href="http://www.thedailysangbad.com/">সংবাদ | </a><br>
<a href="http://www.amardeshonline.com/">আমার দেশ | </a>
<a href="http://www.bhorerkagoj.net/">ভোরের কাগজ | </a><br>
<a href="http://www.manabzamin.net/">মানব জমিন | </a>
<a href="http://www.dailyjanakantha.com/">জনকন্ঠ | </a><br>
<a href="http://www.jaijaidin.com/">যায় যায় দিন | </a>
<a href="http://www.daily-dinkal.com/">দিনকাল | </a><br>
<a href="http://thedailystar.net/">ডেইলী স্টার | </a>
<a href="http://www.newagebd.com/">নিউ এইজ | </a><br>
<a href="http://www.newstoday-bd.com/">নিউজ টুডে | </a>
<a href="http://ittefaq.com/">নিউ নেশন | </a><br>
<a href="http://www.theindependent-bd.com/">ইন্ডিপেন্ডেন্ট | </a>
<a href="www.thefinancialexpress-bd.com">ফাইনান্সিয়াল এক্সপ্রেস</a>

</font>

<p><u><font size='4' color='#992222'>সাপ্তাহিক</font></u></p>


<font size="3">
<a href="http://www.shaptahik.com/">সাপ্তাহিক | </a>
<a href="#">কাগজ | </a><br>
<a href="http://www.shaptahik2000.com/">সাপ্তাহিক ২০০০ | </a>
<a href="#">আনন্দ আলো | </a><br>
<a href="#">এখন | </a>
<a target="_blank" href="http://www.ekpokhkho.com">এক পক্ষ | </a><br>
<a href="http://www.my-anannya.com/">অনন্যা | </a>
<a href="#">এখন সময়</a><br>
<a href="#">তারকালোক | </a>
<a href="#">রোববার</a>

</font>

</div>


</td>
<td width="60%" align="left" valign="top">


<br><br><br><br>
<table border="0" width="100%">

<tr>
<td width="30%">


<a href="./muldhara.html">মূলধারা</a><br>
<a href="./basbhumi.html">বাসভূমি<br>
<a href="./manob_zamin.html">মানব জমিন<br>
<a href="./onnyaghar.html">অন্যঘর<br>
<a href="./onnyashwar.html">অন্যস্বর<br>
<a href="./bichinta.html">বিচিন্তা<br>
<a href="./onnyapokkho.html">অন্যপক্ষ<br>
<a href="./purbavas.html">পূর্বাভাস<br>

</td>
<td width="30%">

<a href="manchitra.html">মানচিত্র<br>
<a href="montobbo.html">মন্তব্য<br>
<a href="saptahik.html">সাপ্তাহিক<br>
<a href="choto_kagoj.html">ছোট কাগজ<br>
<a href="rupantor.html">রূপান্তর<br>
<a href="tritiyo_matra.html">তৃতীয় মাত্রা<br>
<a href="molat_bondi.html">মলাট বন্দী<br>
<a href="krittibas.html">কৃত্তিবাস<br>

</td>

<td width="40%" valign="top">

<a href="khurdhar.html">ক্ষুরধার<br>
<a href="mati_o_manus.html">মাটি ও মানুষ<br>
<a href="melbourne.html">মেলবোর্ণ,সিডনী,বাংলাদেশ<br>
<a href="porichoy.html">পরিচয়<br>
<a href="vandar.html">ভান্ডার<br>
<a href="otithishala.html">অতিথিশালা<br>
<a href="obosor.html">অবসর<br>

</td>
</tr>

</table>

</td>
<td width="20%" align="left" valign="top" bgcolor="#D1D1D1">





<div id="right-link">




<p><u><font size='4' color='#992222'>সংবাদ সংস্থা</font></u></p>
<a href="#"><font size="3">বাসস | </a>
<a href="">ইউ এন বি | </a><br>
<a href="#">বিডি নিউজ | </a>
<a href="#">ফোকাস বাংলা | </a><br>
<a href="#">আর টি এন এন | </a>
<a href="#">শীর্ষ নিউজ | </a><br>
<a href="#">বাংলা নিউজ ২৪ | </a>

</font>
<p><u><font size='4' color='#992222'>দ্বিতীয় সংসার</font></u></p>

<font size="3">


<a href="#"><font size="3">বাংলাদেশ দুতাবাস | </a>
<a href="">বাসভূমি | </a><br>
<a href="#">বেংগলি টাইমস | </a>
<a href="#">নতুন দেশ | </a><br>
<a href="#">মরুপলাশ | </a>
<a href="#">প্রবাসী | </a>
<a href="#">বিবেক বার্তা | </a>
<a href="#">বর্ণমালা | </a>
<a href="#">ঠিকানা | </a>
<a href="#">আজকাল | </a><br>
<a href="#">প্রিয় অস্ট্রেলিয়া | </a>
<a href="#">সোনার বাংলা | </a><br>
<a href="#">বাংলা সিডনী ডট কম | </a>
<a href="#">সেবা | </a><br>
<a href="#">সিডনীবাসী বাংলা | </a>
<a href="#">মেলবোর্ণ বাংলা থিয়েটার | </a>


</font>

<p><u><font size='4' color='#992222'>সাহিত্য পত্র/লিটল ম্যাগ</font></u></p>

<font size="3">
<a href="#">কালি ও কলম | </a><br>
<a href="#">নতুন ধারা | </a>
</font>

</div>




</td>
</tr>
</table>

</td>
</tr>
<!--middle-->


<?php include('bottom.php');?>


</table>

</div>

</div>
</body>
</html>

enigma1

7:50 am on Aug 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had a quick look, make sure you send the content type header with utf-8 out.

Also I am not sure again if the page content is properly encoded. It looks like it isn't when I visit your page, but change the header first.

header('Content-Type: text/html; charset=utf-8');