Repository navigation
[1.7][maxmind] fix provider encondig. Force utf8. - #268
Conversation
|
Why not encode the whole file? This has some performance and memory issues. |
|
@Baachi could explain how binary file could be encoded? |
|
Hm this is a good question. I just google the problem and everyone suggest to use |
|
too many failed tests. I believe it is not me. |
|
The tests didn't pass because the data from the differend providers has been changed. |
There was a problem hiding this comment.
I don't know if it works, but i think array_walk_recursive('utf8_encode', $results) would work too.
There was a problem hiding this comment.
Honestly saying I copy\pasted it from another Provider.
I dont think we need array_walk_recursive here as the array created few lines above and it contains scalars.
|
@willdurand any chance to merged it? |
|
Do we really need this? |
|
@willdurand just comment the fix and see how the test would fail |
|
But the lib should not alter the encoding... |
well, yes in a perfect world. Here it is well known problem. As far as I can see it is the only one solution to get the right info. First I tried to fix encoding in the project code but it appeared to be too late, it simply did not work. Somewhere after Also I found that you did exact same fix in the GeoIpProvider. |
Ah, then I'm screwed! :D So, could you create a |
done - formapro-forks@3c90e66 |
[1.7][maxmind] fix provider encondig. Force utf8.
|
Great, thanks! |
|
Tagged |
No description provided.