Save csv file in utf8 with BOM
Posted: Wed Sep 06, 2023 7:32 pm
The characters are in the utf8 standard, but when I import it into a third-party system, it says that the file is not utf8.
Does anyone have a solution?
Does anyone have a solution?
- Code: Select all Expand view
Method N_SignoCepLayout_BuildAll(f_cFileCvsSalva)
Local lc_cFileCvsConteudo := ""
::N_SignoCepLayout_CabecalhoBuild()
lc_cFileCvsConteudo := ::cCabecalhoCampos + CRLF
lc_cFileCvsConteudo += ::cTxtOcorrenciasAll
hb_MemoWrit(f_cFileCvsSalva,hb_StrToUTF8(lc_cFileCvsConteudo))
Return Nil