<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Special characters getting removed with clean function in documents</title><link>https://community.appian.com/discussions/f/plug-ins/40519/special-characters-getting-removed-with-clean-function-in-documents</link><description>Hi , I am facing an issue in pdf generation. that sometimes frech and spanish letters getting eliminated from the document generated , letters like &amp;#224;, &amp;#233;. &amp;#243;. I am using clean fucntion before passing the sentences to do document template. If I don&amp;#39;t use</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Special characters getting removed with clean function in documents</title><link>https://community.appian.com/thread/154988?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 12:40:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8577bc1-a380-4492-9e07-01ac79c58962</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Don&amp;#39;t use clean(). It strips accented letters (&amp;agrave;, &amp;eacute;, &amp;oacute;) along with the invalid characters. The document only fails to save because of invalid XML control characters in the source text, so remove just those with regexreplaceall(&amp;quot;[\x00-\x08\x0B\x0C\x0E-\x1F]&amp;quot;, yourText, &amp;quot;&amp;quot;) and keep the template UTF-8 encoded.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Few Samples&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!samples: {
    &amp;quot;Gerente, Revisi&amp;#243;n de Cr&amp;#233;dito&amp;quot;,
    &amp;quot;Caf&amp;#233; &amp;#224; la fran&amp;#231;aise&amp;quot;,
    &amp;quot;Bad&amp;quot; &amp;amp; char(8) &amp;amp; &amp;quot;control&amp;quot; &amp;amp; char(11) &amp;amp; &amp;quot;chars&amp;quot;,
    &amp;quot;Mix: Jos&amp;#233;&amp;quot; &amp;amp; char(8) &amp;amp; &amp;quot; Garc&amp;#237;a &amp;#243;&amp;quot;
  },
  a!forEach(
    items: local!samples,
    expression: {
      withClean: clean(fv!item),
      withRegex: regexreplaceall(&amp;quot;[\x00-\x08\x0B\x0C\x0E-\x1F]&amp;quot;, fv!item, &amp;quot;&amp;quot;)
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Special characters getting removed with clean function in documents</title><link>https://community.appian.com/thread/154987?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 12:25:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a14f4167-0dc2-436d-84c3-24af8ca08db0</guid><dc:creator>iswaryan3520</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp; the elimination happening in the interface even before passed to template since the dynamic values are selected&amp;nbsp; and save in ri later passed to template. while saving itself Im using clean function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Special characters getting removed with clean function in documents</title><link>https://community.appian.com/thread/154984?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 10:45:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b43b0faa-56fe-4b91-8519-dd35913d9bfa</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Glyphs are the visuals symbols for each character included in the font file. There is no way to add&amp;nbsp;them. Try to use the default font for testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Special characters getting removed with clean function in documents</title><link>https://community.appian.com/thread/154983?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 10:32:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a73d387f-525c-4bc0-9559-020b559e874b</guid><dc:creator>iswaryan3520</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp; I am using the Tahoma font&amp;nbsp; in the template html expression. But I am not aware of the glyphs or how to include it to the template.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Special characters getting removed with clean function in documents</title><link>https://community.appian.com/thread/154982?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 10:19:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d1dad06-66a8-4c41-a329-b923b1ae7ce2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Could it be that you are using a custom font? If yes, does this font include the glyphs for these letters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>