Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Other TYPO3 Extensions > Unprintable characters
Total Posts: 11 - Pages (2): [1] 2
Author: David Bourgeois
Posted: Mar 12 2008 - 01:05 AM
Subject: Unprintable characters
How do I get rid of unprintable characters? Using the RSS reader, I am getting weird output in place of quote marks or ellipsis (...). Any idea where I can work on this?

Check it out at http://diamondbarchurch.com/community/stories/

Dave
Author: David Bruchmann
Posted: Mar 12 2008 - 02:21 AM
Subject: re: Unprintable characters
Hy David,

You seem to have saved your data as utf-8 that means the database mysql runs in utf-8 mode.
Output is not required as utf-8 but some configuration inside TYPO3 and perhaps on your server has to be done.
I wrote a page with a quick-guide about that: Setting up TYPO3 and the Server for UTF-8 Mode

Best regards
David
Author: David Bourgeois
Posted: Mar 13 2008 - 07:50 PM
Subject: re: re: Unprintable characters
My unprintable characters all come from RSS feeds generated by WordPress. Is there a way to create a setting in Wordpress that can control this?

Dave
Author: David Bruchmann
Posted: Mar 13 2008 - 09:40 PM
Subject: re: Unprintable characters
Hy Dave,

Wordpress runs in UTF-8 Mode, the T3-Page in iso-8859-1-Mode.
Best Way would be the same Format for both pages, otherwise you have to parse the input from Wordpress through a function.
How are RSS-Feeds implemented, which extension do you use, please post the TS-Code for that extension.

Best regards
David
Author: David Bourgeois
Posted: Mar 14 2008 - 12:02 PM
Subject: re: Unprintable characters
David -

I use the extension "RSS Feed Import Modified (so_rssimport)" for this particular RSS feed. I am not sure where to find the TS code, so I am not sure what you want me to post. I found the files associated with the extension in the ext manager. Below is posted the text from what looks like the most relevant file, ext_typoscript_setup.txt. Is this what you want?

Dave

#Setup


plugin.tx_sorssimport_pi1 {


url =
maxItem =
ItemSeparator =
DescSeparator =
ChannelBg =
SubmitValue =
LinkTarget =
ChannelDesc =
ItemDesc =
Image =
Textinput =
TitleFile =
LinkDau =
LinkAfter =
HTMLEnt =
maxChars = 150
altTitle = My News




_CSS_DEFAULT_STYLE (

#twrss_table {
/*width:200px;*/
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: normal;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right:10px;
line-height: 16px;
}

.twrss_head{
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: bold;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right:10px;
line-height: 16px;
}

.twrss_head_channel{
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: bold;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right:10px;
line-height: 16px;
}

.twrss_imagefile{
float:left;
margin-left:10px;
margin-right:10px;
}

.twrss_bodytext{
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: normal;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right:10px;
line-height: 16px;
}

.twrss_bodytext A{
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: normal;
line-height: 16px;
text-decoration:underline;
}

.twrss_bodytext A:hover{
font-size: 12px;
color: #666666;
font-family: verdana;
font-style: normal;
font-weight: normal;
line-height: 16px;
text-decoration:underline;
}

)

}

Author: David Bourgeois
Posted: Mar 17 2008 - 01:29 AM
Subject: re: Unprintable characters
An update: I just updated my WordPress blog to use iso-8859-1 encoding. Unfortunately, my unprintable characters are still showing up, though a bit differently. Check out http://diamondbarchurch.com/community/stories/.

This is getting very frustrating: using Wordpress RSS feeds is the foundation of my strategy to keep my web site content fresh and right now I am really struggling with this. I am also unable to get pictures to show. Anyone have some new ideas?

Dave
user picture Author: Mark Stephenson
Posted: Mar 17 2008 - 06:51 AM
Subject: re: Unprintable characters
David,

Well, even if it requires changing extensions or modifications to the RSS import extension, it should be possible to import the RSS. So, I think your plan will work. It is funny that Wordpress uses non-standard ascii characters inside a feed. There may be a way to tell it to use different encoding. Could you provide a link to your test RSS feed? I am curious to see what the characters look like inside the feed itself. We just need the expected encoding in the extension to match the encoding in the RSS feed.

In Him,
Mark
Author: David Bourgeois
Posted: Mar 17 2008 - 10:23 AM
Subject: re: Unprintable characters
The link to the feed is http://www.efreedb.com/blogs/efreedbstories/?feed=rss2.

Dave
Author: David Bourgeois
Posted: Mar 17 2008 - 01:30 PM
Subject: re: Unprintable characters
Another update: if you look at the RSS feed on the home page, the garbled characters are gone, but not on the "Stories" page. I am using the same extension for both pages.

Note: the "stories" WordPress blog has been updated to use the same character set as Typo3, but the other blogs (also shown on the home page) are still using UTF8.
Author: David Bruchmann
Posted: Mar 17 2008 - 02:37 PM
Subject: re: Unprintable characters
Hy Dave,

I'm not sure, but I think the problem here is that PHP (still) runs in utf-8 mode.
So the sign masks like &#8xxx; are converted to utf-8 by PHP and TYPO3 has the wrong info to handle those signs.
Have a look at your php.ini file to verify that suggestion.

Best regards
David
Total Posts: 11 - Pages (2): [1] 2
You must login to post a message to this conference.