Comments (5)
For now, just try to replace mb_convert_encoding
call to something like iconv('WINDOWS-1250', 'UTF-8//IGNORE', $data);
and report me if it works, I'll update MultiRequest to use iconv
as alternative if mb_convert_encoding
not works.
from multirequest.
Tried
$this->responseContent = iconv($clientEncoding, $this->serverEncoding, $this->responseContent);
and I get
iconv(): Wrong charset, conversion from
win-1251' to utf-8' is not allowed
now.
Right now I just ended up doing this as I don't really care for the response, in my case.
try {
$this->responseContent = mb_convert_encoding($this->responseContent, $this->serverEncoding, $clientEncoding);
} catch (\ErrorException $e) {
$this->responseContent = "";
}
from multirequest.
Try to replace win-1251
with windows-1251
or cp1251
.
from multirequest.
Apologies for late reply.
It seems that it did the trick, but I stumbled upon new encoding 'euc-jp' which inconv()
doesn't like.
[ErrorException]
iconv(): Detected an illegal character in input string
from multirequest.
So you can check if @iconv()
return false, then use mb_convert_encoding
.
from multirequest.
Related Issues (8)
- onRequestComplete в методе класа HOT 8
- how to make multirequest follow the 301 permanent redirection? HOT 1
- Add cURL Request Headers HOT 1
- MultiRequest\Exception: Callback "debugRequestComplete" with name "onRequestComplete" is not callable
- Is it possible to make requests with different proxies? HOT 2
- Packagist is missing newest additions HOT 2
- Multi-thread connection pooling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multirequest.