eventlog: fix broken history for file names with unicode characters. #1023

This commit is contained in:
Hylke Bons 2012-11-10 22:12:38 +00:00
parent 9e89a92ba7
commit 95c7cc18b3

View file

@ -279,6 +279,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);
foreach (SparkleRepoBase repo in Program.Controller.Repositories) {
if (!repo.Name.Equals (folder))
continue;