Working a on a project using Rhythmyx 5.6 abd we’re currently having an issue when publishing out files as asp.net (.aspx). If the page contains a “£” character than this is preceded by a “” character. I’ve noticed this in the past and by added the
ASP.NET is generally happier with CP-1252, sometimes called “Windows ANSI”, to distinguish it from the actual standard ANSI
Rhythmyx, of course, can publish in just about any character set. If 5.x, this is set in the properties of the Assembler Query resource. You’ll want to make sure that the <xsl:output> statement of the stylesheet has the correct encoding.
Of course, this strategy probably isn’t the best if you have to publish lots of Chinese content (for example), but for standard Western European languages, you should be ok. Rhythmyx defaults to UTF-8 because it is universal, but sometimes this isn’t the best choice.
Thanks for the reply and it’s fixed the encoding problem although created another one. When setting the template to publish out as windows-1252 it sets an xml declaration at the top of template
I just wanted to post an explanation and alternative solution to this. In .Net everything is assumed to be UTF-16 unless otherwise specified. The two ways to specify a different encoding is to include a byte order mark (BOM) in the file or to add an option to web.config. The first option can be simulated by opening the file in notepad and saving it ontop of itself as UTF-8. If you look at the file in a hex editor you’ll see the first three bytes are now EF-BB-BF which is the BOM for UTF-8. Obviously you don’t want to do this every time (although Percussion could make a change to their publishing routine). The other easier option is to add the following to your web.config file in system.web: