[Seaside] WAResponce, XML response and BOM
Ron Teitelbaum
Ron at USMedRec.com
Thu Mar 6 02:37:31 UTC 2008
Hi Petr,
The string can not be sent over http, the change is due to
String>>encodeForHTTP
You can translate the string back to its original form by doing
String>>unescapePercents
16rEFBBBF asByteArray asString encodeForHTTP = '%C3%AF%C2%BB%C2%BF'
16rEFBBBF asByteArray asString encodeForHTTP unescapePercents asByteArray
hex = 'EFBBBF'
Hope that helps,
Ron Teitelbaum
> -----Original Message-----
> From: Petr Fischer
>
> Hi,
>
> I am using Seaside with FusionCharts. XML data file for FusionCharts
> is generated by this code:
>
>
> url := (html urlForAction: [
> self session returnResponse:
(Seaside.WAResponse
> new
> contentType: 'text/xml';
> nextPut: 239 asCharacter;
> nextPut: 187 asCharacter;
> nextPut: 191 asCharacter;
> nextPutAll: chart xmlString;
> yourself)
> ]).
>
> 239, 187 and 191 characters is BOM mark for UTF-8 (EF BB BF) - but
> this 3 characters are messed in responce to "C3 AF C2 BB C2 BF" - what
> is wrong?
>
> Thanks very much for suggestions, Petr Fischer (VW7.6dev, mac os x)
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list