Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
4625 00 JVCL Components major always 2008-12-17 14:40 2009-10-03 19:29
debose  
AHUser  
normal  
resolved Daily / GIT  
fixed  
none    
none 3.39  
0004625: TJvDBGridHTMLExport loses Unicode symbols on save in D2009
seems like that's happens, in DoSave procedure. Here is the code:
procedure TJvDBGridHTMLExport.DoSave;
begin
  inherited DoSave;
  FDocument.SaveToFile(FileName);
end;

i suppose, that for Delphi 2009 it should look like
procedure TJvDBGridHTMLExport.DoSave;
begin
  inherited DoSave;
  FDocument.SaveToFile(FileName
    {$IFDEF COMPILER12_UP}
    , TEncoding.UTF8 // or any other Unicode encoding
    {$ENDIF}
   );
end;
same thing is with TJvDBGridCSVExport.DoSave
Issue History
2008-12-17 14:40 debose New Issue
2008-12-19 01:04 obones Note Added: 0015113
2008-12-19 01:04 obones Status new => acknowledged
2008-12-20 15:50 debose Note Added: 0015118
2009-10-03 19:29 AHUser Note Added: 0016238
2009-10-03 19:29 AHUser Status acknowledged => resolved
2009-10-03 19:29 AHUser Fixed in Version => Daily / SVN
2009-10-03 19:29 AHUser Resolution open => fixed
2009-10-03 19:29 AHUser Assigned To => AHUser

Notes
(0015113)
obones   
2008-12-19 01:04   
I think it would be better to add an overload for Save that accepts the encoding
(0015118)
debose   
2008-12-20 15:50   
p.s. i think, that it would be better to completely remove saving feature from this component, and allow it(component) to return Html text somehow.
(0016238)
AHUser   
2009-10-03 19:29   
Added property Encoding: TEncoding to HTML, CSV and XML Export