Welcome Guest, Not a member yet? Register   Sign In
load view utf-8
#1

[eluser]Unknown[/eluser]
i'm making pdf with tcpdf. the idea is to get the view that been rendered by CI then put it directly into tcpdf.

my problem is when im using load->view method, the arabic, russian, chinese (as far as i test) character cannot be display properly.

Code:
$html = $this->load->view(MOD.$this->uri->segment(2), $items, true);
$this->pdf->writeHTML($html, true, false, false, false, '');

output: 5 Ø¨Ùˆä¸–ç•Œä½ å¥½Ø±Ø§Ø¹ نتØ

but when im using string; the character can be display.

Code:
$html = "بو世界你好راع نتالبيسشةىلارؤtestingءئًٌَُلإإ`ـألأ[]ٍ~ْ}{لآآ";
$this->pdf->writeHTML($html, true, false, false, false, '');

is it problem come from load->view function?


Messages In This Thread
load view utf-8 - by El Forum - 03-12-2012, 12:56 AM
load view utf-8 - by El Forum - 03-12-2012, 01:11 AM
load view utf-8 - by El Forum - 03-12-2012, 03:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB