tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/16805-unicode-characters-duplicating-when-used-in-cascadeCascade CMS: Discussion 2018-10-18T20:37:29Ztag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-19T15:34:26Z2015-03-19T15:34:26ZUnicode characters duplicating when used in Cascade.<div><p>Apparently it didn't allow me to include the code. Here is the
code in file form. Test.html is the code that is not working
correctly when put into Cascade, and TestOffline.html is the one
that, when opened directly, works fine.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-19T15:34:54Z2015-03-19T15:34:54ZUnicode characters duplicating when used in Cascade.<div><p>Also of note is that the code appears correctly while viewing it
in the editor, but when you submit the code, it duplicates
again.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-19T19:45:18Z2015-03-19T19:45:18ZUnicode characters duplicating when used in Cascade.<div><p>Hi,</p>
<p>Can you tell me where you are placing this code?:<br></p>
<pre>
<code><head>
<style>
.icon-search:before {
content: "test";
}
</style>
</head>
<body>
<i class="icon-search" />
</body></code>
</pre>
Are you putting this in the Template or attempting to put it
directly into the Page via the WYSIWYG (or an XML/XHTML Block)?</div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-19T21:28:04Z2015-03-19T21:28:04ZUnicode characters duplicating when used in Cascade.<div><p>I'm putting it directly into the page via the HTML button on the
editor.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-20T15:20:52Z2015-03-20T15:20:52ZUnicode characters duplicating when used in Cascade.<div><p>You'll want to avoid putting things like
<code><head></code> tags and <code><body></code> tags
into your Page content as those should already be getting pulled in
from your Template. Generally what folks will do is create a region
in their Template to act as a placeholder for CSS, then they'll
create an XML Block and plug it into that region.</p>
<p>For example, a very simple Template might look like
this:<br></p>
<pre>
<code><html>
<head>
<system-region name="CSS"/>
</head>
<body>
<system-region name="DEFAULT"/>
</body>
</html></code>
</pre>
Then, you would create a new XML Block with the following code:<br>
<pre>
<code><style>
.icon-search:before {
content: "test";
}
</style></code>
</pre>
Finally, you would attach your new XML Block to the CSS region at
the Template level, Configuration level, or Page level. At that
point you should be able to add content like:<br>
<pre>
<code> <i class="icon-search" /></code>
</pre>
to a Page using your Template and it would be styled accordingly.
<p>As a side note, the editor will change <code><i></code>
tags to <code><em></code> tags, but should leave your class
attribute intact.</p>
<p>Let me know if this helps. If you continue to have problems, let
me know:<br>
* The exact code you're placing into the HTML source * What that
same code looks like after you submit</p>
<p>Thanks!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-20T15:32:00Z2015-03-20T15:32:54ZUnicode characters duplicating when used in Cascade.<div><p>I'll look into that, but I have noticed one thing. When I
publish the code, as-is, this is what outputs:</p>
<pre>
<code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title ></title>
</head>
<body>
<div id="content"><style type="text/css">
<!--
.icon-search:before {
content: "test";
}
-->
</style><em class="icon-search" /></div>
</body>
</html></code>
</pre>
<p>The <code><div id="content"></code> seems to be added by
cascade. If I take that exact code adn remove the
<code><div></code> tag, then the problem goes away.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T15:43:25Z2015-03-23T15:43:25ZUnicode characters duplicating when used in Cascade.<div><blockquote>
<p>The <code><div id="content"></code> seems to be added by
cascade. If I take that exact code adn remove the
<code><div></code> tag, then the problem goes away.</p>
</blockquote>
<p>Can you attach a copy of the Template you are using for this
Page? Also, if you're applying an XSLT or Velocity Format to the
DEFAULT region of your Page, please attach a copy of that as
well.</p>
<p>Thanks!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T16:15:44Z2015-03-23T16:15:44ZUnicode characters duplicating when used in Cascade.<div><p>Here's the template. Apparently, I put the content div in there,
but it still doesn't seem to explain why the unicode is
duplicating. The template code is attached. I'm not using any
formats onto the default region of the page.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T16:21:15Z2015-03-23T16:21:15ZUnicode characters duplicating when used in Cascade.<div><p>As far as the duplicate code is concerned, which version of
Cascade Server are you using and which browser vendor/version are
you using?</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T16:25:43Z2015-03-23T16:25:43ZUnicode characters duplicating when used in Cascade.<div><p>Cascade version: 7.12.2 - f65d7<br>
Browser: Chrome, Version 41.0.2272.101 m; Firefox, Version 32.0.3;
Internet Explorer, Version 9.0.8112.16421</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T17:05:44Z2015-03-23T17:05:44ZUnicode characters duplicating when used in Cascade.<div><p>I'm having a lot of trouble replicating this behavior. Would it
be possible for you to use something like <a href="http://www.cockos.com/licecap/">LICEcap</a> to grab some video of
this as you are reproducing it on your end?</p>
<p>Thanks</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T17:34:04Z2015-03-23T17:34:04ZUnicode characters duplicating when used in Cascade.<div><p>Try this code. This is the published code I gave you in the post
above. When you open the page, it should display "test" twice.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T19:26:28Z2015-03-23T19:26:28ZUnicode characters duplicating when used in Cascade.<div><p>Hi,</p>
<p>It is the empty em element that is causing the problem. Try
this:</p>
<p><code>&lt;em
class="icon-search"&gt;&#160;&lt;/em&gt;</code></p>
<p>and the second "Test" will go away.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T19:47:10Z2015-03-23T19:47:10ZUnicode characters duplicating when used in Cascade.<div><p>That appears to have worked on my test. Apparently, the "Tidy
HTML" button was removing the space. I'll check the other code to
make sure the same didn't happen. Thanks.</p></div>webadmintag:help-archives.hannonhill.com,2010-02-09:Comment/363253052015-03-23T20:00:12Z2015-03-23T20:00:12ZUnicode characters duplicating when used in Cascade.<div><p>I am on vacation and will be back on April 9, 2015. If you need
immediate assistance, please contact David Vanwie (<a href="mailto:vanwied@upstate.edu">vanwied@upstate.edu</a>) or Weizhen Tu
(<a href="mailto:tuw@upstate.edu">tuw@upstate.edu</a>). You can
also reach them by calling 4-7896.</p>
<p>Wing</p></div>Wing Ming Chan