Dec 14
Jon Harris [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 08:32
Jon Harris
[LP8.6/WIN] Encode XML problems
Hi List
We are involved in a project to send order details via xml to a fulfilment company.
We had an international order rejected recently with a I^ character in one of the address lines. I have written some code to simulate the issue:
var('address1') = '1 Rue De L=CEle' ;
// encode_xml not affecting the string
encode_xml($address1) "<br />" ;
outputs:
1 Rue De L=CEle
// manually replacing does work
$address1 = string_replace( $address1, -find= "=CE", -replace="Î") ;
$address1 = string_replace( $address1, -find= "=EE", -replace="î") ;
$address1 ;
Outputs:
1 Rue De LÎle
Is this a bug in the encode_xml tag, are the fulfilment company being too fussy, or am I missing something?
The hard-coded solution is not great as I have just found a table of 30 such characters in the French language.
Merci
Jon Harris
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Dec 14
Steve Piercy - Web Site Builder Re: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 02:07
Steve Piercy - Web Site Builder
Re: [LP8.6/WIN] Encode XML problems
Dec 14
Jon Harris RE: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 10:38
Jon Harris
RE: [LP8.6/WIN] Encode XML problems
Dec 14
Steve Piercy - Web Site Builder RE: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 02:50
Steve Piercy - Web Site Builder
RE: [LP8.6/WIN] Encode XML problems
Dec 14
Jon Harris RE: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 11:07
Jon Harris
RE: [LP8.6/WIN] Encode XML problems
Dec 14
Steve Piercy - Web Site Builder RE: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 03:26
Steve Piercy - Web Site Builder
RE: [LP8.6/WIN] Encode XML problems
Dec 14
Kyle Jessup Re: [LP8.6/WIN] Encode XML problems
Dec 14, 2012; 10:02
Kyle Jessup
Re: [LP8.6/WIN] Encode XML problems