PDA

View Full Version : Special character and header error


spmc
12-21-2008, 05:32 PM
Hello. We just bought the calendar and it's fantastic. But we ran into two problems. The first is this error message when entering setup:

Warning: Cannot modify header information - headers already sent by (output started at /home/cerkno/www3/modules/calendar/config.inc.php:1) in /home/cerkno/www3/modules/calendar/setup/index.php on line 55

I've read some similar problems, like uploading in ASCII mode, but it didn't work or I didn't upload the right files. Which one's do I have to replace? I've checked for spaces in the file too but there are none.

The second problem is a special character Č. All settings in the calendar are UTF-8, and in events Č does work. But in calendar display where Č is the first letter of a day, it doesn't work. We already tried to replace it with special character code Č

I should also say that the calendar is used as a Joomla module, if it makes any difference.

Thanks

Brian
12-21-2008, 08:18 PM
Check your config.inc.php file and make sure there are no extra spaces at the beginning of that file. And in the same file, manually edit the day names.

spmc
12-22-2008, 02:33 AM
OK, I managed to solve the first problem. But the second problem remains. Check out www3.cerkno.net. At the left there is EPC, and as you can see, there is a � instead of Č.

In my config file which is coded in Notepad++ with UTF-8 without BOM, I have:


$dayName[0]="Nedelja";
$dayName[1]="Ponedeljek";
$dayName[2]="Torek";
$dayName[3]="Sreda";
$dayName[4]="Četrtek";
$dayName[5]="Petek";
$dayName[6]="Sobota";
$dayName[7]="Dan";


Encoding in EPC setup is UTF-8.

I also thought it might by a Joomla problem, but I doubt it, since all other modules are working correctly.

ve9gra
12-22-2008, 07:39 AM
Your page encoding is not formatted properly.

<?xml version="1.0" encoding="'. utf-8 .'"?' .'>

spmc
12-22-2008, 08:45 AM
Your page encoding is not formatted properly.

<?xml version="1.0" encoding="'. utf-8 .'"?' .'>

It still doesn't work. The page encoding is ok, its not utf-8, but it's a variable pointing to utf-8, so it should work. Anyway, everything on the page seems to work, so I don't think this is the problem.

Also, when I tried your solution I got an error on the page. The site is running Joomla.

ve9gra
12-22-2008, 09:23 AM
That was not a solution.... that is what you currently have on your page. That's why your page is not picking up UTF-8 characters. You will need to fix this.

spmc
12-23-2008, 06:44 AM
My page is picking UTF-8 characters just fine. All over the page UTF-8 characters work. Just in EPC there is this problem. I also changed the encoding formating you suggested, just too UTF-8 and there is no difference. The page has moved to demo.cerkno.net. You can check it out. Any other ideas? Thanks

ve9gra
12-23-2008, 07:25 AM
The problem is within Joomla.... check for yourself. http://demo.cerkno.net/modules/calendar/

spmc
12-23-2008, 08:23 AM
Huh! I was passing this screen a hundred times and haven't noticed that it works here. Now I checked both module files, coded them to UTF-8, tried to add in PHP area header('Content-Type: text/html; charset=UTF-8'); or HTML area<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> but no luck. :(

If the moderators could move this topic to Joomla/Mambo integration, since I now know that it is a Joomla problem, not EPC.