From 3997000266634754e713267d46191ac696787bc0 Mon Sep 17 00:00:00 2001 From: munja Date: Thu, 3 Feb 2022 15:00:46 +0100 Subject: [PATCH] fix: encoding issue in mp_ds2csv (option should have been in quotes) --- all.sas | 4 ++-- base/mp_ds2csv.sas | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index 49a9dd5..113b363 100644 --- a/all.sas +++ b/all.sas @@ -4715,7 +4715,7 @@ quit; numbers). @param [out] outfile= The output filename - should be quoted. @param [out] outref= (0) The output fileref (takes precedence if provided) - @param [in] outencoding= (0) The output encoding to use (unquoted) + @param [in] outencoding= (0) The (quoted) output encoding to use, eg `"UTF-8"` @param [in] termstr= (CRLF) The line seperator to use. For SASJS, will always be CRLF. Valid values: @li CRLF @@ -4751,7 +4751,7 @@ quit; %if %index(&ds,.)=0 %then %let ds=WORK.&ds; %if &outencoding=0 %then %let outencoding=; -%else %let outencoding=encoding="&outencoding"; +%else %let outencoding=encoding=&outencoding; %if &outref=0 %then %let outloc=&outfile; %else %let outloc=&outref; diff --git a/base/mp_ds2csv.sas b/base/mp_ds2csv.sas index e2141e3..17c005a 100644 --- a/base/mp_ds2csv.sas +++ b/base/mp_ds2csv.sas @@ -49,7 +49,7 @@ numbers). @param [out] outfile= The output filename - should be quoted. @param [out] outref= (0) The output fileref (takes precedence if provided) - @param [in] outencoding= (0) The output encoding to use (unquoted) + @param [in] outencoding= (0) The (quoted) output encoding to use, eg `"UTF-8"` @param [in] termstr= (CRLF) The line seperator to use. For SASJS, will always be CRLF. Valid values: @li CRLF @@ -85,7 +85,7 @@ %if %index(&ds,.)=0 %then %let ds=WORK.&ds; %if &outencoding=0 %then %let outencoding=; -%else %let outencoding=encoding="&outencoding"; +%else %let outencoding=encoding=&outencoding; %if &outref=0 %then %let outloc=&outfile; %else %let outloc=&outref;