Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 A coding issue with the new version.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Martin1
Super User

Netherlands
626 Posts

Posted - 24 Dec 2008 :  12:51:44  Show Profile  Reply with Quote
I am currently using the new version and I found a coding issues.

On the first line in front of the doctype DHE has placed the following:
?

Why i have no idea but it shouldn't be there.

Regards,

Martin

s.dav
Site Admin

Italy
3364 Posts

Posted - 28 Dec 2008 :  11:33:44  Show Profile  Visit s.dav's Homepage  Reply with Quote
I think this is the UTF8 BOM file header.
Check if your file has the UTF8 encoding.
These chars were generated also in previous versions.

Regards, Davide
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 28 Dec 2008 :  20:04:25  Show Profile  Reply with Quote
I did use utf8 but why does DHE generate these characters before the doctype?

There is no reason for their use.

Martin
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 29 Dec 2008 :  08:52:35  Show Profile  Visit s.dav's Homepage  Reply with Quote
The BOM (Byte-order mark) should be used in every text file that as a particular encoding (UTF8, UTF16, UTF32).
In UTF8 files it is not mandatory but suggested.

Go here for more info:

http://en.wikipedia.org/wiki/Byte-order_mark
http://www.unicode.org/faq/utf_bom.html#BOM
http://evanjones.ca/python-utf8.html

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 02 Apr 2010 :  11:53:54  Show Profile  Visit 2hats's Homepage  Reply with Quote
I have had the same problem, and it took a while to solve.

My problem was caused by a strange quotation mark in some text that I
copied and pasted. ie a 'strange character' will cause it.
You?ve instead of You've......there is a difference!

Hope this helps someone.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 02 Apr 2010 :  16:46:00  Show Profile  Visit s.dav's Homepage  Reply with Quote
I haven't understood the problem; can you explain me the problem better?

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 03 Apr 2010 :  02:40:24  Show Profile  Visit 2hats's Homepage  Reply with Quote
If you look very hard at the apostrophes they are different!!

I take out the left apostrophe, and the ? goes away.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 06 Apr 2010 :  10:30:32  Show Profile  Visit s.dav's Homepage  Reply with Quote
The strange characters are completely normal;
if you use different "apostrophes" probably D.H.W.E. doesn't use the UTF8 encoding so you'll not see the BOM

Regards, Davide
Go to Top of Page

2hats
Practical

36 Posts

Posted - 06 Apr 2010 :  12:13:41  Show Profile  Visit 2hats's Homepage  Reply with Quote
That's right. It is caused by a different character set, caused by text pasted into a label.

I don't want them as they appear before the <?php tag....resulting in errors!!

Once you know what causes it, you know what to look for to remove it.

I have solved my problem. Hopefully this will help someone else solve theirs.
Go to Top of Page

2hats
Practical

36 Posts

Posted - 09 Apr 2010 :  09:14:24  Show Profile  Visit 2hats's Homepage  Reply with Quote
You will actually get the ?, or sometimes what appears to be just a blank space at the top of your code and before the <html> tag
if using .htm or .html extension, or before <?php or <% if using php or asp.
(this space will give errors in running php)

I have found this is always caused by different character sets being used on the page. These can happen when text has been cut and pasted
from another source (webpage, word, pdf etc) into a dhe label or similar text field.

They are not always easy to find (could be ' " - among others), but they will be the cause of the initial space.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 09 Apr 2010 :  09:40:52  Show Profile  Visit s.dav's Homepage  Reply with Quote
Uncheck the option "use UTF8 chars" in the options and you're done.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000