Permalink
Browse files

Fixed typos as pointed out by https://github.com/alerque

  • Loading branch information...
1 parent e2098e3 commit 71db1c707b7798d954c802dec352e92af722055a @gorhill committed Nov 24, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 README
View
8 README
@@ -76,16 +76,16 @@ FAQ
As of now, the code assume single-byte characters. To use UTF-8 text, you can
always convert the encoding using mb_convert_encoding():
...
- $from_text = mb_convert_encoding($from_text_utf8, 'HTML_ENTITIES', 'UTF-8');
- $to_text = mb_convert_encoding($to_text_utf8, 'HTML_ENTITIES', 'UTF-8');
+ $from_text = mb_convert_encoding($from_text_utf8, 'HTML-ENTITIES', 'UTF-8');
+ $to_text = mb_convert_encoding($to_text_utf8, 'HTML-ENTITIES', 'UTF-8');
$diff_opcodes = FineDiff::getDiffOpcodes($from_text, $to_text);
...
If ever you want to re-generate the $to_text_utf8 from the $from_text_utf8:
...
- $from_text = mb_convert_encoding($from_text_utf8, 'HTML_ENTITIES', 'UTF-8');
+ $from_text = mb_convert_encoding($from_text_utf8, 'HTML-ENTITIES', 'UTF-8');
$to_text = FineDiff::renderToTextFromOpcodes($from_text, $diff_opcodes);
- $to_text_utf8 = mb_convert_encoding($to_text, 'UTF-8', 'HTML_ENTITIES');
+ $to_text_utf8 = mb_convert_encoding($to_text, 'UTF-8', 'HTML-ENTITIES');
....

0 comments on commit 71db1c7

Please sign in to comment.