[Pro] Special characters with WebYep

I may be missing something obvious here!

I am restructuring a client’s site to allow them access for editing using WebYep and Max’s excellent Action suite. So far, it’s more or less working as planned, but I’ve hit a snag: special characters in long text fields.

I want to use the € Euro character for prices, but it won’t work. I’ve tried adding the proper character encoding to the string of text, and I’ve tried different encodings for the page, but it’s not quite working as expected.

Any clues, please?

Thank you.

Heather


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

One thing you might check is if you have your Freeway page set to Automatic encoding, or if you have actually set it manually to one of the named encodings. In my experience, the Automatic (still) gets this wrong and either leaves the encoding tag off or sets it to something heinous like ISO Latin 1.

Walter


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

On 14 Sep 2009, at 15:50, waltd wrote:

In my experience, the Automatic (still) gets this wrong and either
leaves the encoding tag off or sets it to something heinous like ISO
Latin 1.

Okay, I generally leave things set to Automatic. I tried switching to
ISO Latin 1 manually, but it made not a jot of difference.

Mark me up as confused. (And not able to look into it further until
Wednesday now.)

Cheers

Heather


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

I tried switching to ISO Latin 1 manually, but it made not a jot of
difference.

No, that’s the encoding Walter described as ‘heinous’.
(define:heinous - Google Search)

Try UTF-8. Just a guess, but it seems the only logical one left in that list.

(I always leave things set to Automatic too. I must remember this
trick for WebYep though, in case I hit it too.)

k


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

Hi everyone it’s best to match webyep encoding to the page encoding so if you use UTF-8 in your freeway page setup, then make sure you have added this to the config-inc.php (which you can find in the webyep-system folder) open it up in a trext editor and you will find it on line 42… it says

 $webyep_sCharset = "";

so you would set it to this

 $webyep_sCharset = "utf-8";

You might want to adjust the document type while you are there on line 53 from this

 $webyep_sHTMLStandard = "HTML";

to either

 $webyep_sHTMLStandard = "HTML 4.01 Strict";

or this

 $webyep_sHTMLStandard = "XHTML 1.0 Strict";

or what ever you document is set at

all the best Max


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

On 14 Sep 2009, at 17:12, max wrote:

it says

Aha! I’ll have to check that on Wednesday.

Thanks Max.

Heather


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

Hi Max,
It might be worth investigating having the action update the config
file directly from the actions palette. The user would select the
webyep system folder and the action should be able to locate and
update the config-inc.php file automatically.
Regards,
Tim.

On 14 Sep 2009, at 17:12, max wrote:

Hi everyone it’s best to match webyep encoding to the page encoding
so if you use UTF-8 in your freeway page setup, then make sure you
have added this to the config-inc.php (which you can find in the
webyep-system folder) open it up in a trext editor and you will find
it on line 42… it says

$webyep_sCharset = "";

so you would set it to this

$webyep_sCharset = "utf-8";

You might want to adjust the document type while you are there on
line 53 from this

$webyep_sHTMLStandard = "HTML";

to either

$webyep_sHTMLStandard = "HTML 4.01 Strict";

or this

$webyep_sHTMLStandard = "XHTML 1.0 Strict";

or what ever you document is set at

all the best Max

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


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

It might be worth investigating having the action update the config
file directly from the actions palette.

Nice idea Tim. That would be one less thing to remember to fiddle with.


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

Yep I did have it on my long list of things to do but just haven’t had the time… well I am pretty sure that wont make the next release. But I will earmark it for the next one after that.

all the best Max


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

hi all I made a small mistake in may last post

if your document is set to HTML 4 then you need to use

$webyep_sHTMLStandard = "HTML";

but if its an XHTML document then it needs to say

$webyep_sHTMLStandard = "XHTML";

sorry about that

Max


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

On 15 Sep 2009, at 10:02, max wrote:

hi all I made a small mistake in may last post

No problem. I’d like to thank everyone for explaining what I missed.
It’s working as expected now.

Cheers

Heather


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