Skip to content

Commit

Permalink
Fix fzaninotto#1305 realText in some cases breaks last character
Browse files Browse the repository at this point in the history
  • Loading branch information
iamraccoon committed Oct 18, 2017
1 parent 465d5f2 commit e10b5b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Faker/Provider/ru_RU/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

class Text extends \Faker\Provider\Text
{
public function realText($maxNbChars = 200, $indexSize = 2)
{
$realText = parent::realText($maxNbChars, $indexSize);

return iconv('UTF-8', 'UTF-8//IGNORE', $realText);
}

/**
* From ru.wikisource.org
*
Expand Down

0 comments on commit e10b5b3

Please sign in to comment.