[Pro] Perch Problem?

I decided to give Perch a try. I have my SQL database setup and Perch seems to be up in running. I’ve added this code to the page using the Before markup option.

The problem is I don’t know exactly where to add this code:<?php perch_content('Intro');?>

What I did is I selected an HTML Item from within Freeway Pro, then selected “Extended”. In the Extended dialog box I added an “Intro” div with the value “<?php perch_content('Intro');?>”. When I add my content to the Perch control panel and reload the page no content is displaying, so I’m clearly doing something wrong.

Please help. :slight_smile:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Insert the Crowbar action into you HTML item and then add your Perch code snippet to the Crowbar action.

If you do not have the Crowbar action dowload it at http://actions forge.com

Marcel

Support the ActionsForge Kickstarter campaign
http://actionsforge.com/actions/latest#kickstarter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Marcel. I recall that being discussed before, but at the time I didn’t know why. I just downloaded and tried it and it works perfectly.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

New problem. How do you include special characters like ™,®,“”,— into the Perch content box?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What happens when you put…

®

…in to Perch text box?

David

On 27 May 2012, at 21:06, “RavenManiac” email@hidden wrote:

New problem. How do you include special characters like ™,®,“”,— into the Perch content box?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I get this: ®


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Check to see what character set you have set your page to, and your database. MySQL by default uses something similar to Windows Latin, and you have to manually tell it to use Unicode. Your page will most likely be in Unicode. The database will deliver text in a particular character set, and unless it matches exactly the text that the database is sending, you will see what you describe here.

Try fooling with the character set in Freeway first. Try the various encoding options in the Export tab of the Page Inspector. See if any of them work.

If you can’t get it to go, then you’ll have to go back through the database settings and see if you can trick it into using a different charset. You may end up re-entering your data if you go that way. You can’t just convert it in place.

Walter

On May 27, 2012, at 5:28 PM, RavenManiac wrote:

I get this: ®


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My default fonts are set to Arabic (ISO 8859-6). I’m assuming this is wrong. What should they be set to?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just realized that you were referring to the page level encoding, which is currently set to Auto.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walt, I set the page level encoding to Unicode 6 UTF-8 and that worked great. Still interested in what the Default fonts should be set to. :slight_smile:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options