Language Library - ENCODING ERROR(SOLVED) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Language Library - ENCODING ERROR(SOLVED) (/showthread.php?tid=25925) |
Language Library - ENCODING ERROR(SOLVED) - El Forum - 12-30-2009 [eluser]Shiro[/eluser] Dear all, I just want to ask is it possible load two language files into one controller? what I face the problem is when I load another language file, my html will added another "invisible" character, not sure is "nextline" or "space", when I paste to ANSI encoding text, it show ? beside <html>. This is the test I run with CI 1.7.2, and with WAMP I downloaded the CI framework unpacked it, CASE 1: in the default controller (welcome.php) I added Code: function index() the view file Code: <body> in the file system, /language , I create these two file error_lang.php and test.php, these two files are having same content which is Code: <?php When I load the controller, the page is ok, load perfectly. Because it just load one language file. But when I uncomment another language file, there got an extra character come out. CASE 2: in the default controller (welcome.php) I added Code: function index() So, I just want to ask is it possible load two language files into one controller? or this is CI bug? Edit: The reason I ask is because I got another CI project, when I load 2 language files, the top part of the header will go down a next line. but if I load 1 language file, no problem for it. Language Library - ENCODING ERROR(SOLVED) - El Forum - 12-31-2009 [eluser]Shiro[/eluser] after I did some research, I think problem is related something with  - BOM characters anyone got any idea? Language Library - ENCODING ERROR(SOLVED) - El Forum - 12-31-2009 [eluser]Shiro[/eluser] **solve!!!** I fault.... actually is the text file encoding problem, I use notepad++, set the encoding to UTF-8 without BOM then my problem solve.. Happy New Year!!!! Edit: Today start to read the user guide, i found that Quote:File Format |