You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sirona.apache.org by rm...@apache.org on 2014/02/24 08:42:04 UTC

svn commit: r1571159 - in /incubator/sirona/trunk/server/reporting/src/main: java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java resources/templates/report/report-csv.vm

Author: rmannibucau
Date: Mon Feb 24 07:42:04 2014
New Revision: 1571159

URL: http://svn.apache.org/r1571159
Log:
ensuring to get a new line in csv report

Modified:
    incubator/sirona/trunk/server/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java
    incubator/sirona/trunk/server/reporting/src/main/resources/templates/report/report-csv.vm

Modified: incubator/sirona/trunk/server/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java?rev=1571159&r1=1571158&r2=1571159&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java (original)
+++ incubator/sirona/trunk/server/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java Mon Feb 24 07:42:04 2014
@@ -100,6 +100,11 @@ public class ReportEndpoints {
 
     private Template renderFormat(final HttpServletRequest request, final HttpServletResponse response, final Format format) {
         response.setContentType(format.type());
+        try {
+            request.setCharacterEncoding("UTF-8");
+        } catch (final UnsupportedEncodingException e) {
+            // no-op
+        }
         return format.render(request.getParameterMap());
     }
 

Modified: incubator/sirona/trunk/server/reporting/src/main/resources/templates/report/report-csv.vm
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/server/reporting/src/main/resources/templates/report/report-csv.vm?rev=1571159&r1=1571158&r2=1571159&view=diff
==============================================================================
--- incubator/sirona/trunk/server/reporting/src/main/resources/templates/report/report-csv.vm (original)
+++ incubator/sirona/trunk/server/reporting/src/main/resources/templates/report/report-csv.vm Mon Feb 24 07:42:04 2014
@@ -13,5 +13,6 @@
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-*#$headers#foreach ( $line in $lines )#foreach ( $item in $line )$item#if( $foreach.hasNext )$separator#end#end#end
+*#$headers#foreach ( $line in $lines )#foreach ( $item in $line )$item#if( $foreach.hasNext )$separator#end#end
 
+#end