diff --git a/reportdmunit.pas b/reportdmunit.pas index c22b205..d7d37af 100644 --- a/reportdmunit.pas +++ b/reportdmunit.pas @@ -417,7 +417,7 @@ var OptionValue: String; begin - SQL := 'select name,value from options where name in (''GOU_Name'',''Dep_Name'')'; + SQL := 'select name, convert_from(value,''WIN1251'') as value from options where name in (''GOU_Name'',''Dep_Name'')'; with NidbData.GetData(sql) do try while not eof do @@ -430,7 +430,7 @@ begin end; for i := 1 to 5 do AVariables['GOU_Name'+inttostr(i)] := AVariables['GOU_Name']; - with NidbData.GetData('SELECT name,value from options WHERE name like ''GOU_Name%'' ') do + with NidbData.GetData('SELECT name,convert_from(value,''WIN1251'') as value from options WHERE name like ''GOU_Name%'' ') do try while not eof do begin