 | |  |
 |

kfcooke
New User
Apr 10, 2007, 2:45 PM
Post #1 of 11
(3270 views)
Shortcut
|
|
WYSIWYG encoding problems in SSI
|
Can't Post
|
|
I am using an article list publishing rule which publishes the article content from the WYSIWYG editor to *.html files, which are then included via SSI in *.aspx pages published for each category. So I am basically using a categoryMenu publishing rule to publish the header, footer, and navigation to an *.aspx for each category, and I am plopping the article content for each category in to the page using an SSI. The *.aspx page has <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in the <HEAD> section to set the encoding to UTF-8, and my include in the body of the page, i.e. <!--#include virtual="$published.generalSSI.webpath$" -->. The generalSSI template looks like the following, which is very basic: <!--templateInsert : $articleList$ --> <!-- templateCell : articleRow --> $article.content$ <hr/> <!-- /templateCell : articleRow --> This works fine, unless someone adds special characters in the WYSIWYG editor for the article content. Specifically, adding long hyphens does not work. You can type the — entity into the source HTML or type the character itself, —, into the editor and it will appear normally in the WYGIWYG editor and in the page preview. However, when the SSI *.html file is published, it will appear as —, and it also appears as — when the SSI *.html is included in the parent *.aspx page. So my question is, how can I set the encoding for the SSI so it will display the long hyphen correctly? The UTF-8 encoding in the parent *.aspx page is not affecting the SSI, since the — character is already present before the SSI file is ever included. Also, I can't add a <HEAD> section with a <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> line to the SSI, since the SSI file is only an HTML fragment and would cause an error when it gets included in the *.aspx parent page. Is there a default encoding that can be set when pages are published? What do you suggest? Thanks, Kathy
|
|
|  |
 |

ross
Staff
/ Moderator

Apr 11, 2007, 9:25 AM
Post #2 of 11
(3261 views)
Shortcut
|
|
Re: [kfcooke] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Hi Kathy Thanks for posting! I am curious what version of Article Manager you are using? The latest one actually does everything in UTF-8 and even has a neat little utility that would convert all your data into UTF-8. Let me know what you think . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

kfcooke
New User
Apr 11, 2007, 1:27 PM
Post #3 of 11
(3256 views)
Shortcut
|
|
Re: [ross] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Ross, I am using Article Manager 2.12 to construct a new site. Are you saying that the default encoding on publish for the WYSIWYG editor in the latest version is UTF-8? In other words, if you create an articleList publishing rule using the template below, then add an article with a long hyphen (—) in the content somewhere, when you publish the article, does the published file display the — instead of —? <!--templateInsert : $articleList$ --> <!-- templateCell : articleRow --> $article.content$ <!-- /templateCell : articleRow --> Short of having to upgrade to whatever the latest version is, is there a way to set the default encoding on publish for the WYSIWYG editor, since as mentioned previously, it is not possible for me to add a meta tag to set the encoding for my server-side include? I hope this makes sense. Thanks, Kathy
|
|
|  |
 |

Donna
Staff
/ Moderator

Apr 12, 2007, 4:10 PM
Post #4 of 11
(3240 views)
Shortcut
|
|
Re: [kfcooke] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Hi Kathy, By default, Article Manager 2.12 uses utf-8 when creating all pages. At this point, I'd probably recommend filling in a support request here so we can take a look at it directly: https://www.interactivetools.com/support/email_support.cgi Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dan Maitland
User
Mar 13, 2008, 7:26 PM
Post #5 of 11
(2860 views)
Shortcut
|
|
Re: [Donna] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
I seem to be having the same problem. Check out my home page you will see question marks in places where there should be special french charatcers. If anyone has a solution to this it would be great.
|
|
|  |
 |

Dan Maitland
User
Mar 13, 2008, 7:27 PM
Post #6 of 11
(2859 views)
Shortcut
|
|
Re: [Dan Maitland] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Forgot to add the URL to my home page sorry. http://www.gselection.com/index.shtml
|
|
|  |
 |

Donna
Staff
/ Moderator

Mar 14, 2008, 9:10 AM
Post #7 of 11
(2848 views)
Shortcut
|
|
Re: [Dan Maitland] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Hi Dan, I'm not seeing any unusual question marks -- the accents appear to be showing up as expected. You have the correct character encoding in your page, so everything should be working fine. Can you give me more details about where you're seeing the unusual question marks? What browser are you using? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dan Maitland
User
Mar 14, 2008, 9:57 AM
Post #8 of 11
(2846 views)
Shortcut
|
|
Re: [Donna] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
In the feature properties title you will see a question mark where there should be an "é" (see attached jpg)
|
|
Attachments:
|
listing.jpg
(24.6 KB)
|
|
|  |
 |

Jake
Staff
/ Moderator

Mar 17, 2008, 2:53 PM
Post #9 of 11
(2837 views)
Shortcut
|
|
Re: [Dan Maitland] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Hi Dan, How is the content being entered for the site? Is it any of it written up in Microsoft Word beforehand? ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dan Maitland
User
Mar 17, 2008, 5:01 PM
Post #10 of 11
(2834 views)
Shortcut
|
|
Re: [Jake] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
No, actually its being copied and pasted from an html email. You think that is the problem.
|
|
|  |
 |

Donna
Staff
/ Moderator

Mar 18, 2008, 12:53 PM
Post #11 of 11
(2822 views)
Shortcut
|
|
Re: [Dan Maitland] WYSIWYG encoding problems in SSI
[In reply to]
|
Can't Post
|
|
Hi Dan, Yep, that's likely it -- Windows tends to use some pretty awful code when it copies "rich text" html. I'd recommend copying it first into a text editor, like notepad, then into the WYSIWYG editor (this will strip the extra encoding), or from a plain text source if you can. Give that a try and let me know if it works for you. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|