Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  • ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  • LEP-273

Cannot use non ASCII characters in the blog

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.2.0
  • Fix Version/s: 4.1.0
  • Component/s: None
  • Labels:
    None
  • Environment:
    Red Hat el3, Liferay enterprise 3.2.0
  • Similar Issues:
    Show 5 results 

    LEP-279When passing a parameter containing a non-ascii character using the portlet:param tag the non-ascii characters are corrupted.
    LEP-516Renaming og mail folders with non-ASCII characters fails
    LEP-341Non-ASCII characters in folders names
    LEP-222Non-ASCII characters in the documents names
    LEP-327Non ASCII characters get corrupted in rich text format in mail portlet

Description

When using non ASCII characters like the Norwegian characters Ã?Â?Ã?Â?Ã?Â? the rss feed generated from the Blog portlet does not work. The message says that invalid character(s) is found in the text.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    BlogsEntryManagerImpl.zip
    29/Mar/05 7:26 AM
    4 kB
    Rafael Martí­nez
    1. Java Source File
      BlogsEntryManagerImpl.java 16 kB
    Download Zip
    Show
    Zip Archive
    BlogsEntryManagerImpl.zip
    29/Mar/05 7:26 AM
    4 kB
    Rafael Martí­nez
  2. Hide
    Zip Archive
    exporters.zip
    29/Mar/05 7:24 AM
    7 kB
    Rafael Martí­nez
    1. Java Source File
      RSS_0_91_Exporter.java 7 kB
    2. Java Source File
      RSS_1_0_Exporter.java 8 kB
    3. Java Source File
      RSS_2_0_Exporter.java 11 kB
    Download Zip
    Show
    Zip Archive
    exporters.zip
    29/Mar/05 7:24 AM
    7 kB
    Rafael Martí­nez
  3. Hide
    Zip Archive
    informa.zip
    29/Mar/05 7:25 AM
    199 kB
    Rafael Martí­nez
    1. Java Archive File
      informa.jar 221 kB
    Download Zip
    Show
    Zip Archive
    informa.zip
    29/Mar/05 7:25 AM
    199 kB
    Rafael Martí­nez
  4. Hide
    Zip Archive
    jdom.zip
    29/Mar/05 7:23 AM
    142 kB
    Rafael Martí­nez
    1. Java Archive File
      jdom.jar 150 kB
    Download Zip
    Show
    Zip Archive
    jdom.zip
    29/Mar/05 7:23 AM
    142 kB
    Rafael Martí­nez

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
Hide
Permalink
Brett Randall added a comment - 24/Mar/05 9:24 PM

Hi Anders - do you have a stack-trace for this, or is an Exception not thrown?

Show
Brett Randall added a comment - 24/Mar/05 9:24 PM Hi Anders - do you have a stack-trace for this, or is an Exception not thrown?
Hide
Permalink
Anders Brynilsen added a comment - 25/Mar/05 1:51 AM

Yes i got a stack trace:

09:45:50,019 INFO [STDOUT] com.liferay.util.ConverterException: http://localhost/blogs/xml?blogs_user_id=liferay.com.1&type=rss2.0 de.nava.informa.core.ParseException: ParseException: Error in building: Invalid byte 2 of 3-byte UTF-8 sequence.
09:45:50,022 INFO [STDOUT] at com.liferay.portlet.rss.util.RSSConverter.convert(RSSConverter.java:71)
09:45:50,022 INFO [STDOUT] at com.liferay.portal.util.WebCachePool.get(WebCachePool.java:70)
09:45:50,022 INFO [STDOUT] at com.liferay.portlet.rss.util.RSSUtil.getChannel(RSSUtil.java:42)
09:45:50,022 INFO [STDOUT] at org.apache.jsp.html.portlet.rss.view_jsp._jspService(view_jsp.java:647)
09:45:50,032 INFO [STDOUT] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

This is the stack trace from the rss portlet when trying to show the feed.
I also have tried to show som enorwegian newspaper feeds who frequently uses non-ascii characters. The do not cause an exception.

Show
Anders Brynilsen added a comment - 25/Mar/05 1:51 AM Yes i got a stack trace: 09:45:50,019 INFO [STDOUT] com.liferay.util.ConverterException: http://localhost/blogs/xml?blogs_user_id=liferay.com.1&type=rss2.0 de.nava.informa.core.ParseException: ParseException: Error in building: Invalid byte 2 of 3-byte UTF-8 sequence. 09:45:50,022 INFO [STDOUT] at com.liferay.portlet.rss.util.RSSConverter.convert(RSSConverter.java:71) 09:45:50,022 INFO [STDOUT] at com.liferay.portal.util.WebCachePool.get(WebCachePool.java:70) 09:45:50,022 INFO [STDOUT] at com.liferay.portlet.rss.util.RSSUtil.getChannel(RSSUtil.java:42) 09:45:50,022 INFO [STDOUT] at org.apache.jsp.html.portlet.rss.view_jsp._jspService(view_jsp.java:647) 09:45:50,032 INFO [STDOUT] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) This is the stack trace from the rss portlet when trying to show the feed. I also have tried to show som enorwegian newspaper feeds who frequently uses non-ascii characters. The do not cause an exception.
Hide
Permalink
Anders Brynilsen added a comment - 25/Mar/05 2:40 AM

Here is the text it chockes on: Test with norwegian characters æøå (from the blog view, the blog in itself got no problems showing the non-ascii characters)

Show
Anders Brynilsen added a comment - 25/Mar/05 2:40 AM Here is the text it chockes on: Test with norwegian characters æøå (from the blog view, the blog in itself got no problems showing the non-ascii characters)
Hide
Permalink
Brian Chan added a comment - 25/Mar/05 8:02 AM

we use informa rss to process our feeds. I wonder if it's a bug on their part?

Show
Brian Chan added a comment - 25/Mar/05 8:02 AM we use informa rss to process our feeds. I wonder if it's a bug on their part?
Hide
Permalink
Anders Brynilsen added a comment - 25/Mar/05 8:50 AM

Do you guys at Liferay report it to them?

Show
Anders Brynilsen added a comment - 25/Mar/05 8:50 AM Do you guys at Liferay report it to them?
Hide
Permalink
Brian Chan added a comment - 25/Mar/05 9:02 AM

We don't. Do you mind checking their bug list and seeing if this is an issue? We use 6.0 I believe.

Show
Brian Chan added a comment - 25/Mar/05 9:02 AM We don't. Do you mind checking their bug list and seeing if this is an issue? We use 6.0 I believe.
Hide
Permalink
Anders Brynilsen added a comment - 25/Mar/05 9:52 AM

It is not listed in their bug list.

Show
Anders Brynilsen added a comment - 25/Mar/05 9:52 AM It is not listed in their bug list.
Hide
Permalink
Rafael Martí­nez added a comment - 28/Mar/05 8:39 AM

In my installation, using characters non-ASCII of the spanish language, this doesn't work.

In my case, the problem is the encoding of the generated XML, UTF-8 instead of ISO-8859-1. What function of Informa RSS set this encoding?

In any case, in BlogsEntryManagerImpl the encoding UTF-8 of the RSS___Exporter function is hardcode, but I don't know if this is the problem.

Show
Rafael Martí­nez added a comment - 28/Mar/05 8:39 AM In my installation, using characters non-ASCII of the spanish language, this doesn't work. In my case, the problem is the encoding of the generated XML, UTF-8 instead of ISO-8859-1. What function of Informa RSS set this encoding? In any case, in BlogsEntryManagerImpl the encoding UTF-8 of the RSS_ _ _Exporter function is hardcode, but I don't know if this is the problem.
Hide
Permalink
Rafael Martí­nez added a comment - 28/Mar/05 4:22 PM

I think that the problem is in RSS___Exporter of Informa RSS.

The method 'writer' of this class use:

XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());

then, encoding=UTF-8 is set in the XML.

This is an inconvenience. This is a very critical issue for me, I will open a bug on Informa's issue tracker, and I will modify the code of RSS_Exporter in order to patch this problem.

Show
Rafael Martí­nez added a comment - 28/Mar/05 4:22 PM I think that the problem is in RSS_ _ _Exporter of Informa RSS. The method 'writer' of this class use: XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat()); then, encoding=UTF-8 is set in the XML. This is an inconvenience. This is a very critical issue for me, I will open a bug on Informa's issue tracker, and I will modify the code of RSS_Exporter in order to patch this problem.
Hide
Permalink
Anders Brynilsen added a comment - 29/Mar/05 12:01 AM

Good work Rafael!

Can you submit the patch here when you have tested it?

Show
Anders Brynilsen added a comment - 29/Mar/05 12:01 AM Good work Rafael! Can you submit the patch here when you have tested it?
Hide
Permalink
Rafael Martí­nez added a comment - 29/Mar/05 7:21 AM

Here is the patch. (all changes marked in the code between //RMS-I and //RMS-F

1. I use JDM 1.0 (jdom.zip or download from www.jdom.org). Compile informa.jar with this version and update in /lib o LPortal.

2. I have modified 3 java classes of Informa (exporters.zip, informa.zip).

3. I have modified system.properties of LPortal adding:

    1. RMS-I
      ##
    2. XML Encoding for Blogs
      ##

#

  1. The encoding that is set by InformaRSS in the RSS of blogs.
    #
    com.liferay.portlet.blogs.ejb.BlogsEntryManagerImpl.encoding=ISO-8859-1
    1. RMS-F

Set here the correct value, for spanish language, ISO-8859-1.

4. I have modified BlogsEntryManagerImpl.java (BlogsEntryManagerImpl.zip).

That's all

Show
Rafael Martí­nez added a comment - 29/Mar/05 7:21 AM Here is the patch. (all changes marked in the code between //RMS-I and //RMS-F 1. I use JDM 1.0 (jdom.zip or download from www.jdom.org). Compile informa.jar with this version and update in /lib o LPortal. 2. I have modified 3 java classes of Informa (exporters.zip, informa.zip). 3. I have modified system.properties of LPortal adding: RMS-I ## XML Encoding for Blogs ## # The encoding that is set by InformaRSS in the RSS of blogs. # com.liferay.portlet.blogs.ejb.BlogsEntryManagerImpl.encoding=ISO-8859-1 RMS-F Set here the correct value, for spanish language, ISO-8859-1. 4. I have modified BlogsEntryManagerImpl.java (BlogsEntryManagerImpl.zip). That's all
Hide
Permalink
Anders Brynilsen added a comment - 01/Apr/05 3:05 AM

Thanks Rafael, i'll test it out next week.

Show
Anders Brynilsen added a comment - 01/Apr/05 3:05 AM Thanks Rafael, i'll test it out next week.
Hide
Permalink
Brett Randall added a comment - 08/Aug/06 12:43 AM

This issue appears to be resolved.

Show
Brett Randall added a comment - 08/Aug/06 12:43 AM This issue appears to be resolved.

People

  • Assignee:
    Brian Chan
    Reporter:
    Anders Brynilsen
Vote (1)
Watch (2)

Dates

  • Created:
    24/Mar/05 1:12 AM
    Updated:
    19/Jan/07 11:20 AM
    Resolved:
    08/Aug/06 12:43 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.