From 84a75aeb27a990aa6b84358dd7c8b3594f6b65fa Mon Sep 17 00:00:00 2001 From: Carlos Vieira <3831408+caduvieira@users.noreply.github.com> Date: Mon, 24 Jul 2023 16:40:26 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20substitui=20caracteres=20inv=C3=A1lidos?= =?UTF-8?q?=20do=20assunto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rn/ProcessoEletronicoRN.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rn/ProcessoEletronicoRN.php b/src/rn/ProcessoEletronicoRN.php index 3c9f57f26..dfd2166f1 100755 --- a/src/rn/ProcessoEletronicoRN.php +++ b/src/rn/ProcessoEletronicoRN.php @@ -710,7 +710,7 @@ private function atribuirInformacoesAssunto($objCabecalho, $dblIdProcedimento) } - $valorInput=$objRelProtocoloAssuntoDTO->getStrDescricaoAssunto()?utf8_encode($objProcessoEletronicoRN->reduzirCampoTexto(htmlspecialchars($objRelProtocoloAssuntoDTO->getStrDescricaoAssunto()), 10000)):"NA"; + $valorInput=$objRelProtocoloAssuntoDTO->getStrDescricaoAssunto()?utf8_encode($objProcessoEletronicoRN->reduzirCampoTexto(htmlspecialchars($objRelProtocoloAssuntoDTO->getStrDescricaoAssunto(), ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE, 'ISO-8859-1'), 10000)):"NA"; $arrDadosAssunto[] = new SoapVar("" . $valorInput . "", XSD_ANYXML); @@ -730,7 +730,7 @@ private function atribuirInformacoesAssunto($objCabecalho, $dblIdProcedimento) $arrDadosAssunto[] = new SoapVar("" . $valorInput . "", XSD_ANYXML); - $valorInput=$infoAssunto->getStrObservacao()?utf8_encode($objProcessoEletronicoRN->reduzirCampoTexto(htmlspecialchars($infoAssunto->getStrObservacao()), 10000)):"NA"; + $valorInput=$infoAssunto->getStrObservacao()?utf8_encode($objProcessoEletronicoRN->reduzirCampoTexto(htmlspecialchars($infoAssunto->getStrObservacao(), ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE, 'ISO-8859-1'), 10000)):"NA"; $arrDadosAssunto[] = new SoapVar("" . $valorInput . "", XSD_ANYXML);