Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-08-07 17:04:09
- fbox
- Member
- From: Melbourne
- Registered: 2006-02-18
- Posts: 42
sIFR, Character Entities and Textpattern
Hi all,
A strange phenomena that I can’t quite get my head around.
I’m using sIFR to replace article titles. In one case I’m using a small e with an acute accent, but it disappears from view when the page is viewed in Textpattern. It’s not a blank space or ? – the character is simply skipped, leaving a misspelled word.
Where the character is used without sIFR inside an article or textpattern form it appears fine. The problem only occurs when sIFR is used.
The characters ARE included in my sIFR swf, and the sIFR displays correctly when the original plain-XHTML template is viewed outside Textpattern.
I’ve also tried the following, with no differences to the outcome:
- Including the text directly in a form or in a page, rather than as a
<txp:title />
tag. - Including it as an entity name
é
or entity numberé
- Turning off “Prevent widowed words in article titles?”
- Trying other latin1 character entities.
- Changing meta http-equiv charset to
latin-1
instead ofutf-8
- Changing my config.php file to
$txpcfg['dbcharset'] = 'latin1';
instead of$txpcfg['dbcharset'] = 'utf8';
- Turning off all plugins
- Reinstalling Textpattern from scratch
- Using the same sIFR and HTML in a Textpattern install on a separate and totally different server.
I’ve scoured the forums and various sIFR sites without success.
Sanitised high-level diagnostics can be viewed here
Any help, suggestions, previous experience or explanations of Textpattern internal workings are welcome!
– LukeOffline
Re: sIFR, Character Entities and Textpattern
I sometimes use sIFR with German text, which contains umlaut accents, sz-ligature etc. and I get what you describe if I forget to embed those characters in the swf file when I create it (you need to include them as extra characters in the properties window). But you say you have done that…
The characters ARE included in my sIFR swf, and the sIFR displays correctly when the original plain-XHTML template is viewed outside Textpattern.
… and that’s the bit that stumps me. Is the plain XHTML file identical to the XHTML generated by textpattern? If not, what are the differences. I would have thought that if the text is correct in the source code, then the problem must lie with sIFR.
Turning off “Prevent widowed words in article titles?”
This prevents the space between the last two words from being droppped by sIFR as it seems not to be able to render an nbsp;
.
Also worth verifying: Are you testing them on an identical setup with same server environment, same swf file etc.?
TXP Builders – finely-crafted code, design and txp
Offline
#3 2008-08-13 13:54:58
- fbox
- Member
- From: Melbourne
- Registered: 2006-02-18
- Posts: 42
Re: sIFR, Character Entities and Textpattern
Hi Jakob, thanks for your thoughts. I’m stumped.
I’ve tested the XHTML thus:- Copy and paste the page source code (from browser, as output from Textpattern) into a HTML document
- Uploaded this HTML file to the same server, to various places – domain root, subfolders, etc.
- It obviously references the same *.swf and *.js files as it is the same HTML code
Doing the above works – shows a lower case e with acute as expected.
The same code as generated internally by Textpattern doesn’t work.
Errr.
I’m going back to look at the internal workings of the sIFR JavaScript and will report back if I find anything there.
- L.
Offline
Re: sIFR, Character Entities and Textpattern
I also got some trouble on that sometimes. Well, hopefully you’ll find the answer here.
http://www.matthewferry.com
Offline