Skip to content

Commit

Permalink
A couple more Utf8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gerald-lindsly committed Jan 4, 2013
1 parent 81419d1 commit fbf5c71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GridFS.pas
Expand Up @@ -340,7 +340,7 @@ implementation

function TGridFS.find(remoteName : string) : TGridfile;
begin
Result := find(BSON(['filename', remoteName]));
Result := find(BSON(['filename', System.UTF8Encode(remoteName)]));
end;

constructor TGridfile.Create(gridfs : TGridFS);
Expand All @@ -360,7 +360,7 @@ implementation

function TGridfile.getFilename() : string;
begin
Result := string(gridfile_get_filename(handle));
Result := string(System.UTF8ToWideString(gridfile_get_filename(handle)));
end;

function TGridfile.getChunkSize() : Integer;
Expand All @@ -375,7 +375,7 @@ implementation

function TGridfile.getContentType() : string;
begin
Result := string(gridfile_get_contenttype(handle));
Result := string(System.UTF8ToWideString(gridfile_get_contenttype(handle)));
end;

function TGridfile.getUploadDate() : TDateTime;
Expand Down

0 comments on commit fbf5c71

Please sign in to comment.