Welcome Guest, Not a member yet? Register   Sign In
load->view and utf8 encoding
#1

[eluser]haderach[/eluser]
Hi all,

i'm creating a site in french. So i need utf encoding for my page. In this exmaple
Code:
$this->load->view('template/header');
$this->load->view('template/navigation');
$this->load->view('template/gaucheOffre',$data);
$this->load->view('offre/content_offre',$data);
$this->load->view('template/footer');

when the file header.php, navigation.php etc... are save in format utf8 i have an additional character zt the begining of the each file (when it's executed). So the presentation is not good.

if the files are saved in an other format, this additionnal charecter does'nt exist.

Any ideas?

Thanks
#2

[eluser]vitoco[/eluser]
Hi, i think you are saving the files in UTF8 "with BOM", it's a maybe, not sure at all.but you can try if that's the problem.

Saludos
#3

[eluser]pistolPete[/eluser]
Try saving the file in UTF-8 without BOM (Byte-order mark).
#4

[eluser]haderach[/eluser]
what does it mean "with bom"

sorry Wink
#5

[eluser]haderach[/eluser]
thanks pistolPete for the explaination

i'll check
#6

[eluser]haderach[/eluser]
how can i do to save the file without the bom. What sort of editor can i use?
#7

[eluser]vitoco[/eluser]
on windows you can use Notepad++ , on linux you can use Geany ( almost identical to Notepad++ )
#8

[eluser]haderach[/eluser]
Thanks a lot. It works fine now. Wink
I used notepad++.

Do you know if it's possible with jedit to save the files without bom?
#9

[eluser]vitoco[/eluser]
i don't use jedit. sorry




Theme © iAndrew 2016 - Forum software by © MyBB