* Note: This entry was published elsewhere in 2006.
The Penn State server delivers UTF-8 Unicode pages. Dreamweaver creates Unicode pages. They appear fine in all my browsers without the entity code translation. So I should be able to include Unicode characters in server side includes – right? Not exactly. Hidden UTF-8 character seem to
Any .inc file must be encoded as ASCII and only include ASCII characters. Otherwise you will get an error that the file “cannot be processed”. I suspect the culprit are some hidden Unicode control characters that the server doesn’t recognize. If you want to include a Unicode character (like the £ symbol, you have to use an entity code like £ (all characters in the entity code are ASCII). If you enter raw Unicode, then users will see a question mark, even if the character is actually available in that font.
As for CSS stylesheets, there are not issues technically prohibiting .css files from being UTF-8, but I found out a few years ago that if I placed CSS in UTF-8 files, then attributes would mysteriously fail to apply even though the syntax was correct. Again it was probably a hidden UTF-8 character that was interfering. It’s little glitches like these that make Unicode development still an entertaining adventure even in 2007.
What are “hidden” UTF-8 control characters? These are code points which don’t represent a character but signify text formatting elements like right to left text vs. left to right text or which kind of line break you are using. ASCII has control characters just in positions #0-31 (and most software programs recognize them), but Unicode includes additional control characters that older programs don’t recognize. The problem is that the new control character are included.
By the way, if you cut and paste from a UTF-8 file and see strange behavior in a software package, sometimes backspacing through a “space” will eliminate an unrecognized control character and fix the problem.
Share →
Categories
- (X)HTML Markup (10)
- Aboriginal Syllabics (2)
- Accents & Punctuation (58)
- African Scripts (1)
- Ancient Scripts (8)
- Arabic Script (14)
- Armenian (1)
- Braille (1)
- By Script (7)
- Central European (3)
- Cherokee Script (1)
- CJK (23)
- ConScript (1)
- Coptic (3)
- Cyrillic & Eastern Europe (3)
- Domain Names (4)
- Encoding Theory (18)
- Glyph Du Jour (8)
- Greek (4)
- Hebrew (4)
- Humor (13)
- Language Codes (8)
- Linux (1)
- Macintosh (22)
- Math (1)
- News (14)
- Phonetics (4)
- PHP (2)
- Programming (3)
- Runes (1)
- Secret Unicode Link (4)
- Software and Unicode (12)
- South Asian (8)
- Tool Tests (10)
- Uncategorized (5)
- Windows (15)
Archives
- January 2023
- November 2017
- October 2017
- July 2017
- December 2016
- June 2016
- May 2016
- January 2016
- December 2015
- July 2015
- May 2015
- March 2015
- November 2014
- October 2014
- June 2014
- December 2013
- October 2013
- August 2013
- June 2013
- May 2013
- October 2012
- August 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- October 2010
- September 2010
- August 2010
- July 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007