Skip to content

Commit 4980d09

Browse files
committed
Fix encoding
1 parent c01dee8 commit 4980d09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/NXTBackend.API.Core/Services/Implementation/ProjectService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Text;
12
using Microsoft.AspNetCore.Http;
23
using Microsoft.EntityFrameworkCore;
34
using Microsoft.Extensions.Caching.Distributed;
@@ -56,7 +57,7 @@ public async Task<string> GetFileFromProject(Guid projectId, string file, string
5657
});
5758
}
5859

59-
return markdown;
60+
return Encoding.UTF8.GetString(Convert.FromBase64String(markdown));
6061
}
6162

6263
public Task<PaginatedList<Rubric>> GetRubric(Project project, PaginationParams pagination)

0 commit comments

Comments
 (0)