From d57c4ddfe149b472f4e0bd2d5d7591a976a2e16f Mon Sep 17 00:00:00 2001 From: Joe Innes Date: Tue, 15 Sep 2015 22:57:17 +0200 Subject: [PATCH] Set encoding as UTF-8 --- lib/diff_match_patch.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/diff_match_patch.php b/lib/diff_match_patch.php index 35bdb82..cdeb11f 100644 --- a/lib/diff_match_patch.php +++ b/lib/diff_match_patch.php @@ -30,6 +30,9 @@ * Class containing the diff, match and patch methods. * @constructor */ + +mb_internal_encoding('UTF-8'); // Add UTF-8 support + class diff_match_patch { // Defaults. @@ -2114,4 +2117,4 @@ function echo_Exception($str){ } //mb_internal_encoding("UTF-8"); -?> \ No newline at end of file +?>