From 0ee66228952cf144af426ece37a1043beca56cb8 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 2 Nov 2014 13:33:23 +0000 Subject: [PATCH] eventlog controller: Get history of UTF-8 file path. Fixes #1532 --- SparkleShare/SparkleEventLogController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleShare/SparkleEventLogController.cs b/SparkleShare/SparkleEventLogController.cs index 6dc1dbeb..7e35b7ad 100755 --- a/SparkleShare/SparkleEventLogController.cs +++ b/SparkleShare/SparkleEventLogController.cs @@ -257,6 +257,9 @@ namespace SparkleShare { string folder = url.Replace ("history://", "").Split ("/".ToCharArray ()) [0]; string file_path = url.Replace ("history://" + folder + "/", ""); + byte [] file_path_bytes = Encoding.Default.GetBytes (file_path); + file_path = Encoding.UTF8.GetString (file_path_bytes); + file_path = Uri.UnescapeDataString (file_path); foreach (SparkleRepoBase repo in Program.Controller.Repositories) {