php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59182 dont handle UTF8 charset in request
Submitted: 2010-04-27 10:56 UTC Modified: 2010-04-27 23:53 UTC
From: giguet at info dot unicaen? dot fr Assigned: iekpo (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5.2.6 OS: Debian
Private report: No CVE-ID: None
 [2010-04-27 10:56 UTC] giguet at info dot unicaen? dot fr
Description:
------------
send charset for POST form encoded data so that the servlet
container for solr will interpret data correctly (will usually default to latin1)

corrected in solr_functions_client.c



355c355
<                       header_list = curl_slist_append(header_list, "Content-Type: application/x-www-form-urlencoded");
---
>                       header_list = curl_slist_append(header_list, "Content-Type: application/x-www-form-urlencoded;charset=UTF-8");
368c368
<                       header_list = curl_slist_append(header_list, "Content-Type: application/x-www-form-urlencoded");
---
>                       header_list = curl_slist_append(header_list, "Content-Type: application/x-www-form-urlencoded;charset=UTF-8");



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-27 23:45 UTC] iekpo@php.net
The list of acceptable character sets is specified

Accept-Charset: utf-8

I have also added your recommendation too.
 [2010-04-27 23:53 UTC] iekpo@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

This has been resolved in SVN 298685
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC