English 中文(简体)
为什么网络服务支持加固的信?
原标题:Why doesn t webservice support accentuated letters?

I set the datatype of the re Value in the wsdl file to be of xsd:anyType:

<message name="getEtapeProspResponse">
    <part name="return" type="xsd:anyType"/>
</message>

<代码>PHP功能,webservice • 从MySQL表格中选列的栏目中填入的“缝.”。 其中一个栏目有<条码>数据类型<>>。

function getEtapeProsp($user,$motpasse)
    {
        $user_code    = verifyUser($user, $motpasse) ;
        $resultat="";
        if ( $user_code != null) 
        {
            $datejour = date("Y-m-d");
            $connec   = mysql_connect("192.168.1.123:3306", "root", "mysqlroot");
            mysql_select_db("finance",$connec);
            $query    = mysql_query("SELECT * FROM etape_prospection INNER JOIN type_prospection ON etape_prospection.type_prosp_id = type_prospection.type_prosp_id WHERE prosp_id IN (SELECT prosp_id FROM transfert WHERE user_code = ".$user_code ."  AND date_transfert= ".$datejour." ) order by etape_prospection.prosp_id");
            while($ligne = mysql_fetch_array($query))
                {
                     $resultat .= $ligne[ etape_prosp_id ]. ; ;
                     $resultat .= $ligne[ type_prosp_lib ]. ; ;
                     $resultat .= convertDateFormatHH($ligne[ etape_prosp_date ]). ; ;
                     $resultat .= $ligne[ etape_prosp_comment ]. ; ; // this is the text column
                     $resultat .= $ligne[ prosp_id ]. ; ;
                     $resultat .= "
";
                }
        }
        else
        {
            $resultat = "Login ou mot de passe incorrect" ;
        }
        return $resultat;
    }

In the database the value of the "etape_prosp_comment" has an accentuated letter , é. The problem is that when I call the webservice from my J2ME application then an exception is thrown. But if I don t insert any accentuated letters in the column then the webservice is ok.

因此,如何解决这一突出的字母问题?

最佳回答

页: 1 该系统所支持的所有特性都是character set。 之后,Acharacter encoding界定了特性如何被编成随附代表的序号(面值,有多少 by将储存在册等)。

这正是你在ding中面临的问题。 你们的品格会变换,然后,你们必须回去。 如果网络服务和客户不使用同样的特征编码,网络服务就不能将客户的 by改为特征,反之亦然;你会发现错误或恶意的特征。

I m 不是PHP开发商,但以下条款载有关于这一问题的一些相关信息:

该条提及另一个关于品组的好评(不过,比2003年更老):,从而确保你读一读。

您的编码应为UTF-8,主要是因为这一编码符合网络服务互操作性指南的授权,以及UTF-16;

问题回答

暂无回答




相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签