Welcome Guest, Not a member yet? Register   Sign In
Mandarin Language
#1

[eluser]novarli[/eluser]
I have view header.php

Code:
<html >


<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="pragma" content="no-cache" />
  <title><?= $head['title'];?></title>
  
  <link rel="stylesheet" href="<?= base_url();?>mycss/template.css" type="text/css" />
  <link rel="stylesheet" href="<?= base_url();?>mycss/menu.css" type="text/css" />

  <link rel="stylesheet" href="<?= base_url();?>lightbox/lightbox.css" type="text/css" media="screen" />
  [removed][removed]  
    
  <?= isset($head['style'])?$head['style']:''; ?>
  [removed][removed]
  <?= isset($head['script'])?$head['script']:''; ?>
....

And another view which include header.php
Code:
<?php $this->load->view('header'); ?>

<div id="banner"><div class="moduletable">
    &lt;?= $page['secondary'];?&gt;
    <div class="clear"></div>
</div></div>
.....
<div id="middleoneside"><div class="hack">
<h4>歡迎 &lt;?=$account['name'] ?&gt;</h4>
.....
But if i write chinese language will output ???

If i create a simple html like this
Code:
&lt;html &gt;


&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;

  &lt;meta http-equiv="cache-control" content="no-cache" /&gt;
  &lt;meta http-equiv="pragma" content="no-cache" /&gt;
  &lt;title&gt;FirstLabor - Dashboard&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;

        確認航班時刻表/確認機票
      
&lt;/body&gt;
&lt;/html&gt;
It's works
What happen ? Why outputed ??? in my view?
#2

[eluser]Thorpe Obazee[/eluser]
hmm... You'd probably want to post the whole view it's kind of difficult to see what is happening.




Theme © iAndrew 2016 - Forum software by © MyBB