Permalink
Browse files

add: utf8 check before the triple is stored

  • Loading branch information...
1 parent 875aac5 commit 561fa6a84c5d0ec3125cdea07b29be674ef2721d Benjamin Nowack committed Jul 6, 2010
Showing with 9 additions and 7 deletions.
  1. +9 −7 store/ARC2_StoreCBJSONLoader.php
@@ -1,11 +1,12 @@
<?php
-/*
-homepage: http://arc.semsol.org/
-license: http://arc.semsol.org/license
-
-class: ARC2 Store CrunchBase API JSON Loader
-author: Benjamin Nowack
-version: 2008-07-15
+/**
+ * ARC2 Store CrunchBase API JSON Loader
+ *
+ * @author Benjamin Nowack <bnowack@semsol.com>
+ * @license http://arc.semsol.org/license
+ * @homepage <http://arc.semsol.org/>
+ * @package ARC2
+ * @version 2010-06-07
*/
ARC2::inc('CBJSONParser');
@@ -31,6 +32,7 @@ function done() {
}
function addT($s, $p, $o, $s_type, $o_type, $o_dt = '', $o_lang = '') {
+ $o = $this->toUTF8($o);
$this->caller->addT($s, $p, $o, $s_type, $o_type, $o_dt, $o_lang);
$this->t_count++;
}

0 comments on commit 561fa6a

Please sign in to comment.