Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #862 from joeinnes/patch-1
Browse files Browse the repository at this point in the history
Set encoding as UTF-8 in diff_match_patch.php
  • Loading branch information
daeks committed Sep 25, 2015
2 parents de11496 + d57c4dd commit c80c31b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/diff_match_patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -2114,4 +2117,4 @@ function echo_Exception($str){
}
//mb_internal_encoding("UTF-8");

?>
?>

0 comments on commit c80c31b

Please sign in to comment.