[DUG] Invalid Chars in Webservice

Gary T. Benner gary at 123.co.nz
Mon Oct 17 17:02:50 NZDT 2005


[Reply]

HI Kyley,

Data is entered on a web page in a texta rea - being a good journalist the guy entering uses the correct punctuation - wierd stuff I'd never use, but for him is important.

I store the data exactly as is in a  database. Another guy accesses that data via a webservice I've provided - and he uses ASP for the consumption of that data - and we get lots of funny stuff acordingly.

So I want a standard procedure (if there is one) that converts all the unusual punctuation characters and European bits and bobs to the escaped sequences such as $amp; etc.

kind regards

Gary



At 16:29 on 17/10/2005 you wrote 
>To  : delphi at ns3.123.co.nz
>CC  : >From: Kyley Harris, kyleyharris at gmail.com
>Content Type: text/html
>Attached: >
>
>
>Can you provide some context as to where the punctuation marks are? ie, are
>you delivering XML, or HTML etc?
>
>On 10/17/05, Gary T. Benner <gary at 123.co.nz> wrote:
>>
>> Hi all,
>>
>> Am delivering content through a WebService to a third party, and I'm
>> finding many punctuation characters being converted to '???' on the
>> receiving end.
>>
>> Is there a standard routine to escape these, or convert them to the
>> alternate &#8217;.
>>
>> or &amp; etc. ???
>>
>> I've made a routine that does the usual ones, but a standard proc that
>> catches them all would be easier.
>>
>> regards
>>
>> Gary
>>
>>  ------------------------------
>> Gary Benner e-Engineer, Lecturer, and Software Developer
>> *123 Internet Limited <http://www.123.co.nz>**Waiariki Institute of
>> Technology <http://www.waiariki.ac.nz>**Sunshine Garden Bag Co.<http://www.sunshinebags.co.nz>
>> **Sommnet.com Limited <http://www.sommnet.com>*Mob: 021 966 992Email:
>> gary at 123.co.nz
>>
>>
>> Ref#: 41006
>>
>>
>> _______________________________________________
>> Delphi mailing list
>> Delphi at ns3.123.co.nz
>> http://ns3.123.co.nz/mailman/listinfo/delphi
>>
>>
>>
>>
>
>
>--
>Kyley Harris
>Harris Software
>+64-9-8455274
>+64-21-671-821
>
>
>
>_______________________________________________
>Delphi mailing list
>Delphi at ns3.123.co.nz
>http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 15/10/2005
>

Ref#: 41006

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20051017/5b9b92d5/attachment-0001.html


More information about the Delphi mailing list