1
hrac
UTF-8 problem with 2.3.0
  • 2008/10/5 5:48

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


Hello,
I'm using 2.3.0 and when I create a new module, if I create a php file in this module in UTF-8 format, then I get following warning messages, when running that script:

Quote:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /modules/link/new.php:1) in file /include/common.php line 255
Warning: Cannot modify header information - headers already sent by (output started at /modules/link/new.php:1) in file /kernel/session.php line 276


And I get some garbage character at the begining of screen like: 

If I use ASCII encoding in php files, I hadn't this problem. Should I use ASCII or UTF-8 encoding while creating php files? But if I create them in ASCII then I have another problem: Turkish characters aren't shown correct.

PS: I installed XOOPS with UTF-8 encoding.

Thanks

2
kerkyra
Re: UTF-8 problem with 2.3.0
  • 2008/10/5 10:40

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hey mate do you use ajax in your site?is globals.php set to correct encoding? I have some problems with my module using ajax it doesnt show the characters (I used to have that kind of error though!I dont remember what exactly i did to fix it...:() but it gives me a white margin on top of the page if i set the character encoding of globals.php to utf!
whttp://www.guidemap.gr - Beta is out...

3
hrac
Re: UTF-8 problem with 2.3.0
  • 2008/10/5 10:46

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


all encodings in global.php are UTF-8

I don't use ajax

By the way I get same white margin or one line at the top of the page.
I switched back to 2.0.18.2

4
kerkyra
Re: UTF-8 problem with 2.3.0
  • 2008/10/5 11:52

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i really can't get to the root of this one! it's a utf encoding problem for sure! But it's only there in my module! when visiting other modules of my site with utf encoded language files its gone! I though it was an ajax problem of some kind...till now...
whttp://www.guidemap.gr - Beta is out...

5
hrac
Re: UTF-8 problem with 2.3.0
  • 2008/10/5 11:58

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


as far as I understand, if one of php files encoded UTF-8 inside XOOPS using current page, than this problem occurs (at least to me)

So if I make a language file for Turkish using UTF-8, if this language file will be used for one web page, than that page will have this problem. I open another web page that doesn't use this language file, no problem.

6
kerkyra
Re: UTF-8 problem with 2.3.0
  • 2008/10/5 13:58

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


same for me mate! Thats what happens to me too...
whttp://www.guidemap.gr - Beta is out...

7
robekras
Re: UTF-8 problem with 2.3.0
  • 2008/10/6 7:28

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


Seems that your editor adds a BOM to your UTF-8 file.
...

8
hrac
Re: UTF-8 problem with 2.3.0
  • 2008/10/6 7:31

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


what is a BOM?
I'm using UltaEdit 14.00a.
How can I configure it not to add BOM?
thanks

9
robekras
Re: UTF-8 problem with 2.3.0
  • 2008/10/6 8:06

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


Maybe this link is of use for you.

Robert
...

10
kerkyra
Re: UTF-8 problem with 2.3.0
  • 2008/10/6 8:36

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


mate you are the man! That's totally it! Never even knew about the BOM thing....I'm using notepad++ and all i had to do is check the utf-without BOM in the format menu! Thanks a lot!
whttp://www.guidemap.gr - Beta is out...

Login

Who's Online

381 user(s) are online (308 user(s) are browsing Support Forums)


Members: 0


Guests: 381


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits