Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
Fixed typos as pointed out by https://github.com/alerque
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 24, 2011
1 parent e2098e3 commit 71db1c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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');
....


Expand Down

0 comments on commit 71db1c7

Please sign in to comment.