On 6/1/05, Felde Norbert <fenor@...> wrote:
> Thanks, I could find the problem. There was not only \r\n lineend in the
> string but \n too.
Understood - that may have tripped the escaping routing in JPSpan when
strings are serialized. Will see if there's a way to catch things like
that.
> Is there a max string length I can send to the client?
Technically there shouldn't be but perhaps IE has some fixed limit.
18000 bytes sounds pretty small though.
> In IE is an another error when the string is long ( about 18000
> character ) and the character coding is wrong. In firefox is all right.
JPSpan reports everything as being encoded as UTF-8. If you've got non
ASCII characters in your string which were encoded in some other way
e.g. ISO-8859-1, you'll need to convert to UTF-8. You may find PHP's
utf8_encode function fixes the issue but for a much longer read, try
this http://www.phpwact.org/php/i18n/charsets
Believe Firefox has a pretty smart "guessing" mechanism for character
encoding so perhaps it's solving the problem for you automatically.
>=20
> Norbert
>=20
>=20
> Harry Fuecks wrote:
>=20
> >Hmmm - this is probably an issue with quoting characters that might be
> >mistaken as Javascript markup, combined with idiosynchrocies with
> >PHP's strings. Are you using addslashes in gencontent_itemlist() or
> >one of the functions it calls?
> >
> >Think for this one will need some examples of the PHP code you're using.
> >
> >On 6/1/05, Felde Norbert <fenor@...> wrote:
> >
> >
> >>Hi all,
> >>
> >>I have a string that I whish to send to the client. If the string is a
> >>returned value of one of my functions I receive the error message on th=
e
> >>client side
> >>[Server_Error] unterminated string literal while calling ...
> >>If I write the returned string in a file and than copy-paste to the
> >>return that the string to send should be a constant it works fine.
> >>I have no idea what could be different and what is meaning under this
> >>error message.
> >>
> >>For example:
> >>it is bad so:
> >>
> >>$res =3D displayrsscontents::gencontent_itemlist( $ai_rssid );
> >>return $res;
> >>
> >>but it is ok so
> >>
> >>$res =3D <the result of the displayrsscontents::gencontent_itemlist fun=
ction>
> >>return $res;
> >>
> >>I hope you could help me.
> >>
> >>Thanks,
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by Yahoo.
> >>Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> >>Search APIs Find out how you can build Yahoo! directly into your own
> >>Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q=
22005
> >>_______________________________________________
> >>Jpspan-discuss mailing list
> >>Jpspan-discuss@...
> >>https://lists.sourceforge.net/lists/listinfo/jpspan-discuss
> >>
> >>
> >>
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by Yahoo.
> >Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> >Search APIs Find out how you can build Yahoo! directly into your own
> >Applications - visit http://developer.yahoo.net/?fr=3Dfad-ysdn-ostg-q220=
05
> >_______________________________________________
> >Jpspan-discuss mailing list
> >Jpspan-discuss@...
> >https://lists.sourceforge.net/lists/listinfo/jpspan-discuss
> >
> >
> >
> >
>
|