summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Grekas <nicolas.grekas@gmail.com>2014-03-18 08:55:16 +0100
committerNicolas Grekas <nicolas.grekas@gmail.com>2014-03-18 08:55:16 +0100
commit93193e619b484630af6776390f77cc39836200c7 (patch)
tree55e399bf41df4c54ca116ec2248f00c7a36e96e5
parent5c57f515cf161aa6768c0e736a2c05c162a5728a (diff)
downloadfastimage-93193e619b484630af6776390f77cc39836200c7.zip
fastimage-93193e619b484630af6776390f77cc39836200c7.tar.gz
fastimage-93193e619b484630af6776390f77cc39836200c7.tar.bz2
fix #1
-rw-r--r--Fastimage.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Fastimage.php b/Fastimage.php
index 1db470e..dc42188 100644
--- a/Fastimage.php
+++ b/Fastimage.php
@@ -211,8 +211,7 @@ class FastImage
$result = substr($this->str, $this->strpos, $n);
$this->strpos += $n;
- // we are dealing with bytes here, so force the encoding
- return mb_convert_encoding($result, "8BIT");
+ return $result;
}
@@ -237,4 +236,4 @@ class FastImage
{
$this->close();
}
-} \ No newline at end of file
+}