Skip to content

Commit

Permalink
feat: remove translit and ignore from iconv
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio mezzogori committed Dec 11, 2023
1 parent 268a620 commit 58ed217
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This library requires PHP 7.1+ since [v1](https://github.com/smalot/pdfparser/re
You can install it via [Composer](https://getcomposer.org/):

```bash
composer require smalot/pdfparser
composer require FabioMezzo/pdfparser
```

In case you can't use Composer, you can include `alt_autoload.php-dist`. It will include all required files automatically.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smalot/pdfparser",
"description": "Pdf parser library. Can read and extract information from pdf file.",
"name": "fabiomezzo/pdfparser",
"description": "Pdf parser library. Can read and extract information from pdf file. Forked from smalot/pdfparser",
"keywords": ["PDF", "text", "parser", "parse", "extract"],
"type": "library",
"license": "LGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ private function decodeContentByEncodingElement(string $text, Element $encoding)
// so we use iconv() here
$iconvEncodingName = $this->getIconvEncodingNameOrNullByPdfEncodingName($pdfEncodingName);

return $iconvEncodingName ? iconv($iconvEncodingName, 'UTF-8//TRANSLIT//IGNORE', $text) : null;
return $iconvEncodingName ? iconv($iconvEncodingName, 'UTF-8', $text) : null;
}

/**
Expand Down

0 comments on commit 58ed217

Please sign in to comment.