CMS MADE SIMPLE FORGE

TruetypeText

 

[#2882] Strange UTF16 bytecode marks before <?php of all files

avatar
Created By: Guilherme Viebig (viebig)
Date Submitted: Thu Jan 15 22:57:56 -0500 2009

Assigned To: Gaute Sandvik (gaute)
Version: v1.1
CMSMS Version: None
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
Strange UTF16 bytecode marks before
Detailed Description:
All files have bytecodes before <?php (installed from Module Manager)


History

Comments
avatar
Date: 2009-07-06 17:19
Posted By: Andreas Just (cyberman)

The attachment in this post 

http://forum.cmsmadesimple.org/index.php/topic,34044.msg166651.html#msg166651

contains a cleared version of class.ttt.php


      
avatar
Date: 2009-07-07 18:51
Posted By: Simon (simonschaufi)

if you have problems with editing the files, i can provide a cleared version
      
avatar
Date: 2009-09-29 16:32
Posted By: Rick Beton (rickb)

Byte order marks (BOMs) are a standard option for UTF-encoded text files
(http://unicode.org/faq/utf_bom.html,
http://en.wikipedia.org/wiki/Byte-order_mark).  They allow file readers to
detect the byte ordering & encoding automatically in the case of UTF encodings,
which is a considerable benefit.

However, a quick Google gives me the impression that lots of people seem to try
all sorts of techniques to get rid of BOMs.  This is a bit odd- they're a good
idea and the problem is not with the idea but with older software that doesn't
know about them.
      
avatar
Date: 2009-09-29 17:19
Posted By: Rick Beton (rickb)

I found another useful link: http://bugs.php.net/bug.php?id=22108

PHP5 does not handle Unicode correctly and this bug is a "won't fix".  Instead
it will be fixed in PHP6.

So for now, you have to strip BOMs out of PHP scripts and avoid using editors
(typically on Windows) that insert them automatically unless you can disable it.
      
avatar
Date: 2009-09-29 17:20
Posted By: Rick Beton (rickb)

Another useful resource: http://www.cl.cam.ac.uk/~mgk25/unicode.html
      
avatar
Date: 2012-01-05 15:00
Posted By: Jonathan Schmid (Foaly*)

version 2.2 released!
      
Updates

Updated: 2012-01-05 15:00
resolution_id: => 7
cmsms_version_id: => -1
state: Open => Closed