Details

    • Type: Bug Bug
    • Status: 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 

      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.

        Activity

        Hide
        Rafael Martí­nez added a comment -

        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 - 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
        Anders Brynilsen added a comment -

        Good work Rafael!

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

        Show
        Anders Brynilsen added a comment - Good work Rafael! Can you submit the patch here when you have tested it?
        Hide
        Rafael Martí­nez added a comment -

        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 - 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
        Anders Brynilsen added a comment -

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

        Show
        Anders Brynilsen added a comment - Thanks Rafael, i'll test it out next week.
        Hide
        Brett Randall added a comment -

        This issue appears to be resolved.

        Show
        Brett Randall added a comment - This issue appears to be resolved.

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Subcomponents

                  Structure Helper Panel