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

Set encoding as UTF-8 in diff_match_patch.php #862

Merged
merged 1 commit into from
Sep 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");

?>
?>