invisble space on UTF-8, WB 9.2.

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

invisble space on UTF-8, WB 9.2.

Post by daredare »

a bug in your editor had me spend 2 days thinking i had an error in my css from a wordpress blog(and i dont give a flying f**k about wp). 2 columns where unaligned , why ? because your editor, very oftenly, when you save as UTF-8 adds an invisible space at the begining of the file.I had the same problem with php headers and sessions.
cheers
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: invisble space on UTF-8, WB 9.2.

Post by Gatis »

Hi,

Not sure this is the cause for you, but have you tried to save in UTF-8 without BOM?
More on this you can read here:
http://en.wikipedia.org/wiki/Byte_order_mark
Kind regards,
Gatis Avots
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: invisble space on UTF-8, WB 9.2.

Post by Karlis »

Nothing extra is added. Probably wp can not handle UTF-8 files with byte order mask. Choose UTF-8 without BOM in this case.
Karlis Blumentals
Blumentals Software
www.blumentals.net
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: invisble space on UTF-8, WB 9.2.

Post by daredare »

i would say "weird" , because : when coding with sessions or php headers i had the same problem, i had to change my file to ANSI. Btw this is a known issue among several editors.
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: invisble space on UTF-8, WB 9.2.

Post by Karlis »

Yes, exactly, PHP session will not work if there is output before session code and due to lack of proper UTF-8 support in PHP, it can not process UTF header properly thus outputs it as text.

The fact is that PHP can not handle UTF-8 files with byte order mask. So you must either save without BOM or as ANSI.
Karlis Blumentals
Blumentals Software
www.blumentals.net
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: invisble space on UTF-8, WB 9.2.

Post by daredare »

thank you , this is clarifying.
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
Post Reply