Browse files

Reapply 209a6af

  • Loading branch information...
1 parent 2bea50a commit 92376faaccdfb543a737750ddfe43a433ccbc24a @CloCkWeRX committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 serializers/ARC2_NTriplesSerializer.php
View
2 serializers/ARC2_NTriplesSerializer.php
@@ -104,7 +104,7 @@ function escape($v) {
// escape tabs and linefeeds
$v = str_replace(array("\t", "\r", "\n"), array('\t', '\r', '\n'), $v);
// escape non-ascii-chars
- $v = preg_replace_callback('/([^:ascii:]+)/', array($this, 'escapeChars'), $v);
+ $v = preg_replace_callback('/([^a-zA-Z0-9 \!\#\$\%\&\(\)\*\+\,\-\.\/\:\;\=\?\@\^\_\{\|\}]+)/', array($this, 'escapeChars'), $v);
return $v;
}

0 comments on commit 92376fa

Please sign in to comment.