encoding - Problems retrieve strings with accents WSO2 DSS DataServices -


i'm testing wso2 dss tool, hoping use in business. first proof of concept, i'm having problems encoding , xml output. explain.

i have table in sql server simple:

create table [dbo].[usuarios] ( [nombre_usuario] varchar(20) collate sql_latin1_general_cp1_ci_as not null, [password] varchar(20) collate sql_latin1_general_cp1_ci_as not null, [entidad_persona] varchar(60) collate sql_latin1_general_cp1_ci_as not null ) on [primary]; 

the dss tool hosted on windows 2003 datasource configured. data service xml is:

<data name="sqlserver_frontal" transports="http https"> <description>queries frontales_web</description> <config id="sqlserver">     <property name="carbon_datasource_name">sqlserver</property> </config> <query id="getuser" useconfig="sqlserver">     <sql>select entidad_persona dbo.usuarios nombre_usuario = :iduser</sql>     <result element="users" escapenonprintablechar="true" rowname="user">      <element column="entidad_persona" name="entidad_persona" xsdtype="string"/></result>   <param name="iduser" sqltype="string"/> </query> <operation name="getuser">    <call-query href="getuser"><with-param name="iduser" query-param="iduser"/></call-query> </operation> <resource method="get" path="getuser"><call-query href="getuser"><with-param name="iduser" query-param="iduser"/>   </call-query> </resource> </data> 

when call operation , value of column "entidad_persona" has accents, xml error. if don't have accents, reply correct.

example: if "entidad_persona" = 'emilio jiménez' in ie or ff browser:

 error de lectura xml: mal formado  ubicación: http://myserver:9764/services/sqlserver_frontal/getuser?iduser=emiji número de línea 1, columna 100: <users xmlns="http://ws.wso2.org/dataservice"><user><entidad_persona>emilio jim�nez</entidad_persona></user></users> 

i think data in sql server in latin1 or iso-8859-1 , dss configured deal utf-8.

where can change configuration of dss accept responses latin1 or iso-8859-1?

at startup (wso2server.bat) observed that: -dfile.encoding=utf8

in catalina-server.xml observed uri-encoding="utf-8"

what solutions there pick xml strings accents?

thank , time,

regards,

i met similar issue. when add parameter -dfile.encoding=utf8, works.

but when tried execute update operation in dss, below, encoding issue happens again. still working on it.

     <![cdata[         exec updatetaskmessagebytaskid ?, ?, ?;     ]]>     </sql>     <result element="updatehumantaskbyidresponse" >         <element name="result" column="result" xsdtype="boolean"/>     </result>     <param name="taskid" ordinal="1" sqltype="integer"/>     <param name="messagedata" ordinal="2" sqltype="string"/>     <param name="lastupdatetime" ordinal="3" sqltype="bigint"/> 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -