<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>problem to display diacritic characters in JSP</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=11419022" />
  <subtitle>problem to display diacritic characters in JSP</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=11419022</id>
  <updated>2026-04-06T19:41:41Z</updated>
  <dc:date>2026-04-06T19:41:41Z</dc:date>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11922373" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11922373</id>
    <updated>2011-12-29T13:43:06Z</updated>
    <published>2011-12-29T13:43:06Z</published>
    <summary type="html">Hitoshi,&lt;br /&gt;&lt;br /&gt;attached is also the war file of the sample code which you can deploy.&lt;br /&gt;&lt;br /&gt;--Ketkee</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-29T13:43:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11922354" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11922354</id>
    <updated>2011-12-29T13:34:31Z</updated>
    <published>2011-12-29T13:34:31Z</published>
    <summary type="html">Hi Hitoshi,&lt;br /&gt;&lt;br /&gt;I have prepared a very crude dummy of the scenario where I am getting a problem for display of diacritics.&lt;br /&gt;&lt;br /&gt;What I have done:&lt;br /&gt;1. on view.jsp, I have added a jquery ajax call and loaded a list of objects which I display as a table on results.jsp. After the ajax call, data is stored in session scope by the function&lt;br /&gt;storeHTMLResultFn({&lt;br /&gt;				shareAttrURL: &amp;#39;${shareAttrURL}&amp;#39;,&lt;br /&gt;				htmlStoreKey: &amp;#39;htmlResult&amp;#39;,&lt;br /&gt;				htmlResult: message,&lt;br /&gt;				debug: false&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;2. at the bottom of the table(results.jsp) , I have added a text and a submit button&lt;br /&gt;&lt;br /&gt;Steps to execute the test case of the character issue:&lt;br /&gt;1. Deploy the portlet on Liferay and add it to a portal page(the portlet is under category &amp;#39;Test for Encode&amp;#39;)&lt;br /&gt;2. Table of data will be displayed. At the bottom, enter data in the comments box and click on Submit button.&lt;br /&gt;3. The table will be displayed again , but this time all French characters are disrupted.&lt;br /&gt;4. After submit, I have redirected to a page called results-disp.jsp where I access the table data from session scope like this: ${sessionScope[&amp;#39;htmlResult&amp;#39;]}&lt;br /&gt;5. Same is the case for the characters of date time stamp which I have added at the right top of table.&lt;br /&gt;&lt;br /&gt;Let me know if you have trouble accessing the code and running it.&lt;br /&gt;&lt;br /&gt;I have attached the code. Also attached are the screen shots before and after the respective operations.&lt;br /&gt;&lt;br /&gt;Need help on this.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;--Ketkee</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-29T13:34:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11916888" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11916888</id>
    <updated>2011-12-28T21:54:59Z</updated>
    <published>2011-12-28T21:54:59Z</published>
    <summary type="html">Sorry. I&amp;#39;m at a loss here. I don&amp;#39;t have any problem with Japanese characters and I don&amp;#39;t see why with other character sets. May be just a bug with IE effecting diacritic characters.&lt;br /&gt;Can you send an sample code?</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-12-28T21:54:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11911895" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11911895</id>
    <updated>2011-12-28T13:05:00Z</updated>
    <published>2011-12-28T13:05:00Z</published>
    <summary type="html">Checked that.&lt;br /&gt;&lt;br /&gt;When I make a jquery.ajax request, I get the data displayed in the browser properly.&lt;br /&gt;&lt;br /&gt;after I get this data, I store that response under success callback in a variable in session&lt;br /&gt;&lt;br /&gt;Now when I press F5  on my page, I access the value from that variable. This is when I get the issue.&lt;br /&gt;&lt;br /&gt;Data coming from server is good. but retrieving from session is giving me problems.&lt;br /&gt;&lt;br /&gt;I checked IE&amp;#39;s encoding under View&amp;gt;Encoding before and after Refresh. both times, I can see it is Unicode(UTF-8).&lt;br /&gt;&lt;br /&gt;Can you help?</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-28T13:05:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11913136" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11913136</id>
    <updated>2011-12-28T12:57:18Z</updated>
    <published>2011-12-28T12:57:18Z</published>
    <summary type="html">You should have told us about the jquery ajax earlier. Are you able to enter the uri for the ajax request from IE and get the data to properly appear?&lt;br /&gt;Check IE&amp;#39;s encoding when you do this to make sure it&amp;#39;s UTF8.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-12-28T12:57:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11911648" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11911648</id>
    <updated>2011-12-28T11:45:14Z</updated>
    <published>2011-12-28T11:45:14Z</published>
    <summary type="html">Further to this problem I tried:&lt;br /&gt;response.setContentType(&amp;#34;text/html; charset=ISO-8859-1&amp;#34;);&lt;br /&gt;&lt;br /&gt;does not work.&lt;br /&gt;&lt;br /&gt;the problem occurs because I am trying to access an entire table which has been loaded through jquery ajax. this table data is then stored in session scope. and when I try to retrieve that data, the french characters inside the data are disrupted in IE.&lt;br /&gt;&lt;br /&gt;Could you please advise further?</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-28T11:45:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11858207" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11858207</id>
    <updated>2011-12-21T09:04:43Z</updated>
    <published>2011-12-21T09:04:43Z</published>
    <summary type="html">I&amp;#39;ve seem similar questions concerning French and German not appearing correctly on IE, but I haven&amp;#39;t seen any solution here.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m displaying Japanese using UTF8 and haven&amp;#39;t had any problem. It may be better if you post your question to French or German&lt;br /&gt;forum because the problem may be particular to IE for that language.&lt;br /&gt;&lt;br /&gt;Can you try using ISO-885-9 encoding to see if that&amp;#39;ll work.&lt;br /&gt;&amp;lt;%@ page contentType=&amp;#34;text/html; charset=ISO-8859-1&amp;#34; %&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;  response.setContentType(&amp;#34;text/html; charset=ISO-8859-1&amp;#34;);&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;br /&gt;The only other reference to a similar problem I know of if the following:&lt;br /&gt;http://stackoverflow.com/questions/6505944/jquery-load-character-encoding-problem-in-ie</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-12-21T09:04:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11855902" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11855902</id>
    <updated>2011-12-21T05:58:35Z</updated>
    <published>2011-12-21T05:58:35Z</published>
    <summary type="html">Please note that this problem occurs on page refresh.</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-21T05:58:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11855894" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11855894</id>
    <updated>2011-12-21T05:52:43Z</updated>
    <published>2011-12-21T05:52:43Z</published>
    <summary type="html">Hi Hitoshi,&lt;br /&gt;&lt;br /&gt;I have the following 2 lines on all my JSPs:&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ page contentType=&amp;#34;text/html; charset=UTF-8&amp;#34; pageEncoding=&amp;#34;UTF-8&amp;#34; %&amp;gt;&lt;br /&gt;&amp;lt;META HTTP-EQUIV=&amp;#34;Content-Type&amp;#34; CONTENT=&amp;#34;text/html; charset=UTF-8&amp;#34;&amp;gt; &lt;br /&gt;&lt;br /&gt;but it still doesnt work.&lt;br /&gt;&lt;br /&gt;Can u pls suggest?&lt;br /&gt;&lt;br /&gt;--Ketkee</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-21T05:52:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11847027" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11847027</id>
    <updated>2011-12-20T12:54:19Z</updated>
    <published>2011-12-20T12:54:19Z</published>
    <summary type="html">Have you set the contentType and installed necessary fonts?&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ page contentType=&amp;#34;text/html;charset=&lt;em&gt;your character set&lt;/em&gt;&amp;#34; %&amp;gt;&lt;br /&gt;&lt;br /&gt;Also specify&lt;br /&gt;&amp;lt;META HTTP-EQUIV=&amp;#34;Content-Type&amp;#34; CONTENT=&amp;#34;text/html; charset=&lt;em&gt;your character set&lt;/em&gt;&amp;#34;&amp;gt;</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-12-20T12:54:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11846948" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11846948</id>
    <updated>2011-12-20T12:42:25Z</updated>
    <published>2011-12-20T12:42:25Z</published>
    <summary type="html">People,&lt;br /&gt;&lt;br /&gt;can some one please help me with this issue?&lt;br /&gt;&lt;br /&gt;this is still not resolved.&lt;br /&gt;&lt;br /&gt;Please note this problem occurs in IE only and not in Firefox.</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-12-20T12:42:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11433444" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11433444</id>
    <updated>2011-11-11T10:59:32Z</updated>
    <published>2011-11-11T10:59:32Z</published>
    <summary type="html">Yes, it has been set up to UTF-8&lt;br /&gt;&lt;br /&gt;What could be the next possible solution?&lt;br /&gt;&lt;br /&gt;Please help!</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-11-11T10:59:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11423983" />
    <author>
      <name>Ravi Kumar Gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11423983</id>
    <updated>2011-11-10T17:31:43Z</updated>
    <published>2011-11-10T17:31:43Z</published>
    <summary type="html">is page content-type set to utf-8?</summary>
    <dc:creator>Ravi Kumar Gupta</dc:creator>
    <dc:date>2011-11-10T17:31:43Z</dc:date>
  </entry>
  <entry>
    <title>problem to display diacritic characters in JSP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11419021" />
    <author>
      <name>Ketkee A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11419021</id>
    <updated>2011-11-10T12:04:45Z</updated>
    <published>2011-11-10T12:04:45Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;I have a problem displaying diacritic characters in JSP. so certain German anf Frendch characters are disrupted in my porltets. this happens when I refresh my page.&lt;br /&gt;&lt;br /&gt;Could you please suggest what could be the solution for this?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;--Ketkee</summary>
    <dc:creator>Ketkee A</dc:creator>
    <dc:date>2011-11-10T12:04:45Z</dc:date>
  </entry>
</feed>
