<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JCR and escaping apostrophes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98060#M67567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your application server JBoss? I am trying to figure out if JCR/JNDI is working with it. So far it seems to me that Tomcat is working fine but JBoss not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Jukkis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 08:56:01 GMT</pubDate>
    <dc:creator>nikkijuk</dc:creator>
    <dc:date>2007-06-25T08:56:01Z</dc:date>
    <item>
      <title>JCR and escaping apostrophes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98057#M67564</link>
      <description>Hi,We're using Alfresco Community 2.0.0 in our custom webapp over JCR/JNDI.&amp;nbsp; This has worked well for us so far.&amp;nbsp; One problem we noticed though on our production server is apostrophe (aka single quotes) are replaced with question marks in some of the fields.&amp;nbsp; I'm just setting them as standard JCR pr</description>
      <pubDate>Wed, 30 May 2007 21:10:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98057#M67564</guid>
      <dc:creator>hiteshlad</dc:creator>
      <dc:date>2007-05-30T21:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: JCR and escaping apostrophes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98058#M67565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using this query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;select * from alf_node_properties where string_value like '%father%';&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and sure enough, the database on the prod environment has the '?' and the database on the test environment has the correct '.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 23:04:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98058#M67565</guid>
      <dc:creator>hiteshlad</dc:creator>
      <dc:date>2007-05-30T23:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: JCR and escaping apostrophes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98059#M67566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I figured it out.&amp;nbsp; The user actually copied the string "Father's Day" from Microsoft Word.&amp;nbsp; There, the apostrophe isn't a apostrophe.&amp;nbsp; Using the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for (int i = 0; i &amp;lt; sProject.length(); i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char c = sProject.charAt(i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(i + ": " + c + "(" + (int)c + ")");&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured out the supposed apostrophe character wasn't ASCII code 39 but in fact code 146:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;0: F(70)&lt;BR /&gt;1: a(97)&lt;BR /&gt;2: t(116)&lt;BR /&gt;3: h(104)&lt;BR /&gt;4: e(101)&lt;BR /&gt;5: r(114)&lt;BR /&gt;6: ?(146)&lt;BR /&gt;7: s(115)&lt;BR /&gt;8: D(68)&lt;BR /&gt;9: a(97)&lt;BR /&gt;10: y(121)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;It is reasonable for the system not to accept this extended ascii character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end, this is just another case of user error.&amp;nbsp; I will be putting a check to make sure all the character codes are &amp;lt; 128.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope my internal dialog helps other people.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- hitesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 23:02:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98059#M67566</guid>
      <dc:creator>hiteshlad</dc:creator>
      <dc:date>2007-06-01T23:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: JCR and escaping apostrophes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98060#M67567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your application server JBoss? I am trying to figure out if JCR/JNDI is working with it. So far it seems to me that Tomcat is working fine but JBoss not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Jukkis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 08:56:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jcr-and-escaping-apostrophes/m-p/98060#M67567</guid>
      <dc:creator>nikkijuk</dc:creator>
      <dc:date>2007-06-25T08:56:01Z</dc:date>
    </item>
  </channel>
</rss>

