Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
RSS feed does not validate because of encoding (problem solved, thanks Chris)
Posted: 17 June 2005 10:18 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

I do not know what is wrong here:
My RSS feed does not validate
http://www.atelier.box.nl/H/index.xml

“Your feed appears to be encoded as “UTF-8”, but your server is reporting “US-ASCII”“

In the Index.xml I do not see any encoding at all?

And I do not know how to fix that either.

Thanks for answering!

Atelier

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 17 June 2005 10:27 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Your server itself appears to be setting “US-ASCII” as the encoding for .xml files, which is different than the one specified in the feed itself (“UTF-8”).

If you’re on an Apache-based webserver, then you could add the following line to a .htaccess file:

AddCharset UTF-8 .xml

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 17 June 2005 11:24 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

Thanks for answering

I cannot name that file on my computer .htaccess because the MacOSX (=UNIX) uses the . for hidden files.
So I FTP a textfile named htaccess to my directory on the server, and tried to renama that there but I get answer: forbidden filename.


Any clue? I’ll write my ISP about this problem.

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 17 June 2005 12:12 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32910
Joined  2004-05-14

I don’t know what FTP program you’re using, but I like to keep hidden files hidden, too. (I’m also on OSX) - however, for editing websites I like to SEE hidden files.  My FTP program - Cyberduck - has an option to show files beginning with .  If I remember correctly, Transmit did too.  But I don’t know what you’re using.

Then I just use alt-j to edit the file from the server and voila. =)

 Signature 
Profile
 
 
Posted: 17 June 2005 01:53 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

I use Interarchy, and with this app I can rename files on the server. So I uploaded htaccess and tried to change the name in .htaccess. Then came the error: forbidden filename

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 17 June 2005 03:53 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Have you tried using a different FTP program as Lisa mentioned?  I use “Transmit” myself and she uses “Cyberduck”.  I’ve never had a problem creating or editing a .htaccess file on a server with Transmit.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 17 June 2005 04:48 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

I’m so sorry
Transmit also gives the same error.
forbidden filename. (please see PDF as screenshot)
it’s on the server, I’m afraid. I wrote a mail to my ISP about this. I’ll report here what they said.

And: many thanks for your answers!

(nice looking program, that Transmit, I’ll check out also Cyberduck)

edit: I have send a JPEG now, for some reason your Forum did not accept my PDF)

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 17 June 2005 08:52 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Are you on an Apache-based webserver?  If not, then it won’t use .htaccess files and you’ll need to talk to your Host/server admin about how to change the encoding or character set for .xml type files.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 17 June 2005 08:54 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32910
Joined  2004-05-14

I can’t rename files to .htaccess either.  I use Cyberduck to SEE the .htaccess files and then edit them from the server (by clicking cmd j).  That’s how I did it with Transmit, too. =)

 Signature 
Profile
 
 
Posted: 18 June 2005 01:10 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

@ Administrator As far as I know they use Apache. Maybe a securety thing? I wait for their answer.

@ LisaJill On my syste (MacOSX just like yours) I cannot name any file .filename because I get a warning ” .filename is used by the System, you cannot name that file .filename)
And I downloaded a copy of Cyberduck, to try it out. But….I’m afraid that their way of thinking is not mine…. Thanks for the tip, though.

I’ll come back here with answer from my ISP

Tanks

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 18 June 2005 10:56 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

Hi, I’m back
Still no reply from my ISP, but I found something odd.
I downloaded a copy of Newsmac (http://www.thinkmac.co.uk/newsmac/index.html) and to my suprise the feed does work in their app. (Did not so in Newsfire )


So far so good, though I do not understand this, the xml file still is “not validated” according to http://feedvalidator.org/check.cgi?url=http://www.atelier.box.nl/H/index.xml

I discovered something else strange:

In my xml file we can read:
<image>
<title>Huis in Zweden</title>
<url>http://www.atelier.box.nl/H/huis.php</url>
<link>http://www.atelier.box.nl/H/index.xml</link>
<description>Nieuwe inzendingen in het weblog Huis in Zweden</description>
</image>

but in Newsmac the URL for the site is the same as for the feed. (please see first uploaded jpeg)
Is this a bug in my xml file genererated by pMachine?

I also tried NetNewsWire Lite ( http://ranchero.com/) which also showed the feed OK, with the same result: the URL leading to my weblog leads to the xml file. (please see the second JPEG)

I do have another separate weblog (not connected to this one) and there the xml file is empty, no matter what I do. Can I please ask a question for that problem here, or shall i make it another post?

again: many thanks for your time and advise….....grin

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 18 June 2005 03:42 PM   [ Ignore ]   [ # 11 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

The part about the link pointing back to the .xml file is, indeed, due to how pM Pro generates the feed.  I’m afraid you’d have to hack the backend file that generates the feed in order to change it, though.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 18 June 2005 06:23 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

With respect, I am not going to hack anything, I’m glad that I was able to set up my weblog in the first place.. grin

But…I made some progress.

in the RSS factory I changed the version to 0.91 and that solved the “validation” problem. Newsfire now shows my feed.
I’m happy.

The only thing is that one particulair entry has as a title: “-” (without the “”) shows correct in NewsFire as well as in NetNewsWire Lite, but in NewsMac as…..

&#45;

. Why?
I think this is very strange, these differences between RSS readers.

How can we trust that in the Windows world my feed is presented correctly? I mean, is this the same problem as with HTMLcode and different browsers? What a nightmare… :-(

I do not mean pMachine, don’t get me wrong, I really like your software.

What do you advise, shall I keep the version to .91?

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 21 June 2005 06:19 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

Hi again

my ISP has put the .htaccess file on the server.
(They forbid such files, for securety reasons. Which is understandable)

Now the feed can bee seen in my three different RSS readers.

Good.

But the xml is still not validated.

Not good.

They say on
http://feedvalidator.org/check?url=http://www.monumentmaker.nl/ateliernieuws/ateliernieuws.xml

Sorry

This feed does not validate
.

line 27, column 25: 'utf8' codec can't decode bytes in position 1474-1476: invalid data (maybe a high-bit character?) [help]

<title>glaspaneel met ge?te vlinders</title

Someone any clue? My computer works under MacOSX. Browser Safari or Firefox. Server Apache.

@Chris
I discovered also something wrong in pMachine, in the RSS factory
I’m asked there to give the URL to my XML feed, that should be the URL to my weblog. (Maybe you ment that with hacking the back-end, since pMachine is no longer supported, which I understand)

I think pMachine is a wonderful piece of software, I enjoy working with it.
Thanks for your support

regards

atelier2

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 21 June 2005 11:17 AM   [ Ignore ]   [ # 14 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

It looks like you have a high-ASCII character in your site name/title (In General Preferences, I imagine).  Try using the character or numeric entity equivalent.  You can see a pretty good list here.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 21 June 2005 04:51 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

Hi Chris

I’m so sorry, I’m just a normal user, I do not have any advanced knowledge. I write a ë, and I do not know what “high-ASCII character” means.

I use a normal QWERTY keybord, my system OSX is set to Dutch language. When I write something, I expect to see on the internet what I see on my screen when I write in my weblog.

I’m glad that the RSS readers recognise my xml feed, for starters…..

Thanks a lot for helping me, it really worked!

best regards

Atelier2

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
Posted: 22 June 2005 06:09 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  2005-02-21

slowly I begin to see the light.

In my own words, it seems to be like this:
the XML file must only contain normal characters. ë, ø ü or ä is a big nono.

I changed the feed in the controlpanel. Now only the blurb shows in the feed. And I take care not to use any forbidden characters.

The feed validates.

Few…!

 Signature 

Atelier2

Atelier Voor Beeldhouwwerken

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 65023 Total Logged-in Users: 0
Total Topics: 82111 Total Anonymous Users: 0
Total Replies: 441269 Total Guests: 12
Total Posts: 523380    
Members ( View Memberlist )
Active Members: