Welcome Guest, Not a member yet? Register   Sign In
[HELP] UTF-8 file gives me a headache
#1

[eluser]Las3r[/eluser]
Hi there everyone,

For my website i basically have a lang.en.php file in root/translations/lang.en.php

I include this file in every controller, and it contains lines like:
Code:
define('WELCOME',   'Welcome back'  );
define('ADMIN_PANEL_OVERVIEW','Administration panel overview');
define('NEWS_MANAGER','News Manager');

This works fine and it nicely shows me the actual text in the views when i load them.

HOWEVER:

In order to translate the admin panel to greek (utf-8), I tried to convert the lang.php document to utf-8 with notepad++, and uploaded it as lang.gr.php.

(note: If i don't change it to utf-encoded php file, the website will show trash, regardless of a header content type set as utf-8 or not (!)).

With the identical file (but UTF-8 rather than ANSI) Codeigniter spits me the message "Warning headers already sent" on a redirect-page. Wtith the exact same file in english but ANSI this doesn't happen.

Does anyone has any idea how this comes, and how can I can find a solution for this other than:

Code:
ΘΘΙΞΞ
ΘΘΙΞΞ

Regards,

Erik


Messages In This Thread
[HELP] UTF-8 file gives me a headache - by El Forum - 08-01-2009, 10:48 AM
[HELP] UTF-8 file gives me a headache - by El Forum - 08-01-2009, 10:51 AM
[HELP] UTF-8 file gives me a headache - by El Forum - 08-01-2009, 10:53 AM
[HELP] UTF-8 file gives me a headache - by El Forum - 08-01-2009, 10:53 AM
[HELP] UTF-8 file gives me a headache - by El Forum - 08-01-2009, 10:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB