Quantcast
Channel: PKP Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 27455

Report plugins - UTF-8 characters

$
0
0

@lopez.casique wrote:

Hola:

He visto en varias revistas que al momento de obtener los reportes en idioma español, estos salen con caracteres raros, el csv no muestra los acentos o eñes de forma correcta. He agregado la siguiente línea de código fprintf($fp, chr(0xEF).chr(0xBB).chr(0xBF)); justo después de $fp = fopen('php://output', 'wt'); y ahora los reportes muestran la información correctamente. He realizado este ajuste en:

Hi:

I've seen in some journals that the reports in spanish have errors with áéíóú or ñ, for example. So, I've added this code fprintf($fp, chr(0xEF).chr(0xBB).chr(0xBF)); just after of $fp = fopen('php://output', 'wt'); and now the reports show the information correctly. These are the modified scripts:

plugins/reports/articles/ArticleReportPlugin.inc.php
plugins/reports/counter/classes/LegacyJR1.inc.php
plugins/reports/reviews/ReviewReportPlugin.inc.php
plugins/reports/subscriptions/SubscriptionReportPlugin.inc.php
plugins/reports/timedView/TimedViewReportForm.inc.php
plugins/reports/views/ViewReportPlugin.inc.php
pages/manager/StatisticsHandler.inc.php

¡Saludos!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 27455


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>