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

Commit

Permalink
Merge pull request #1326 from iamraccoon/master
Browse files Browse the repository at this point in the history
Fix #1305 realText in some cases breaks last character
  • Loading branch information
fzaninotto authored Nov 13, 2017
2 parents 65dcf63 + a48d5e6 commit 9cda1a4
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 9cda1a4

Please sign in to comment.