Convert imports to UTF-8. Fix #198

master
Thomas Tanghus 2013-11-07 18:24:01 +01:00
parent 6f62f87a86
commit 7ab9761c89
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ $file = \OC\Files\Filesystem::file_get_contents($_POST['path'] . '/' . $_POST['f
if(!$file) {
OCP\JSON::error(array('error'=>'404'));
}
$file = Sabre\VObject\StringUtil::convertToUTF8($file);
$import = new OC_Calendar_Import($file);
$import->setUserID(OCP\User::getUser());
$import->setTimeZone(OC_Calendar_App::$tz);