Message Boards

company news has some bug on UTF8?

lyly lyly, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 5 Join Date: 8/19/04 Recent Posts
I use the company news portlet to add a article, but when I submit the aticle, the title which write in Chinese become garbage code, and the content has become empty.<br />
kelvin kelvin, modified 19 Years ago.

company news has some bug on UTF8?

Junior Member Posts: 40 Join Date: 8/19/04 Recent Posts
I use the company news portlet to add a article, but when I submit the aticle, the title which write in Chinese become garbage code, and the content has become empty.<br />

<br />
<br /><br />I suffered from the same problem, when I type some special chinese character (&quot;&#35377;&#21151;&quot;), the liferay prompt me &quot;You have entered invalid data. Please try again. &quot;<br />
thumbnail
Brian Chan, modified 19 Years ago.

company news has some bug on UTF8?

Liferay Master Posts: 753 Join Date: 8/5/04 Recent Posts
Is this in your local machine or on demo.liferay.net<br /><br />It could be a db setting on our part.
kelvin kelvin, modified 19 Years ago.

company news has some bug on UTF8?

Junior Member Posts: 40 Join Date: 8/19/04 Recent Posts
Is this in your local machine or on demo.liferay.net<br /><br />It could be a db setting on our part.<br />

<br />
<br /><br />In my localhost machine...
lyly lyly, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 5 Join Date: 8/19/04 Recent Posts
it maybe cause by &quot;multipart/form-data &quot; , because it&#39;s right in other portlet which can&#39;t use the &quot;multipart/form-data &quot; in 2.2.0rc2<br /><br />And in 2.2.0rc3, the words which write in Chinese become garbage code in all the portlets
thumbnail
Brian Chan, modified 19 Years ago.

company news has some bug on UTF8?

Liferay Master Posts: 753 Join Date: 8/5/04 Recent Posts
2.2.0 rc3 came with a new filter. I wonder if that causes the problem? I&#39;ll fix it to always use UTF-8 as that could be an issue.
thumbnail
THE THE, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 7 Join Date: 8/30/04 Recent Posts
I observed a (probably related) behaviour with the news portlet. All German special chars like ��� get distorted.<br />Changing th Filter to always use UTF-8 didn&#39;t help (I uncommented the prepared line in CompressionResponse.class). Disabling compression didn&#39;t help either. I would have been surprised to find the cause in the filter anyway, since most portlets work fine. <br />In LEP 2.1.1 all is ok, I don&#39;t know on which 2.2.0RC the problem entered the system.<br />I glanced over all sources in the news portlet and didn&#39;t find any lines that looked suspicious. Any idea where to look?<br />I glanced over all
lyly lyly, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 5 Join Date: 8/19/04 Recent Posts
The question maybe caused by JS.unescape and JS.escape, a easy way to solute this is delete or rewrite the function
thumbnail
THE THE, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 7 Join Date: 8/30/04 Recent Posts
Could you explain where these functions are to found and/or overwritten?
lyly lyly, modified 19 Years ago.

company news has some bug on UTF8?

New Member Posts: 5 Join Date: 8/19/04 Recent Posts
you can find the function in the portlet and delete the function. most question can be soluted