@@ -277,8 +277,13 @@ function get_details_file_content(a_object_id varchar2, a_unit ut_object_name, a
277277 /*
278278 * public definitions
279279 */
280- function get_index(a_coverage_data ut_coverage.t_coverage, a_assets_path varchar2, a_project_name varchar2 := null, a_command_line varchar2 := null)
281- return clob is
280+ function get_index(
281+ a_coverage_data ut_coverage.t_coverage,
282+ a_assets_path varchar2,
283+ a_project_name varchar2 := null,
284+ a_command_line varchar2 := null,
285+ a_charset varchar2 := null
286+ ) return clob is
282287
283288 l_file_part varchar2(32767);
284289 l_result clob;
@@ -287,8 +292,10 @@ function get_details_file_content(a_object_id varchar2, a_unit ut_object_name, a
287292 l_time_str varchar2(50);
288293 l_using varchar2(1000);
289294 l_unit ut_coverage.t_full_name;
295+ l_charset varchar2(1000);
290296 begin
291- l_coverage_pct := coverage_pct(a_coverage_data.covered_lines, a_coverage_data.uncovered_lines);
297+ l_charset := coalesce(upper(a_charset),'UTF-8');
298+ l_coverage_pct := coverage_pct(a_coverage_data.covered_lines, a_coverage_data.uncovered_lines);
292299
293300 l_time_str := ut_utils.to_string(sysdate);
294301 l_using := case
@@ -305,7 +312,7 @@ function get_details_file_content(a_object_id varchar2, a_unit ut_object_name, a
305312 end;
306313 --TODO - build main file containing total run data and per schema data
307314 l_file_part := '<!DOCTYPE html><html xmlns=''http://www.w3.org/1999/xhtml''><head>' || '<title>' || l_title ||
308- '</title>' || '<meta http-equiv="content-type" content="text/html; charset=utf-8 " />' ||
315+ '</title>' || '<meta http-equiv="content-type" content="text/html; charset='||l_charset||' " />' ||
309316 '<script src=''' || a_assets_path || 'application.js''></script>' ||
310317 '<link href=''' || a_assets_path ||
311318 'application.css'' media=''screen, print'' rel=''stylesheet'' type=''text/css''/>' ||
0 commit comments