Alle 14:34, venerdì 22 luglio 2005, Stephan Bergmann ha scritto:
[...]
> > As a further possibility, I'm looking in the sources of cUrl library.
> > http://curl.haxx.se/
[...]
> I did not look at the cUrl stuff.  In theory, what you have to do here
> is to de-escape sequences of "%xx"-sequences into byte sequences (each
> "xx" is a hex digit pair that represents a byte), treat those byte
> sequences as UTF-8 strings, and convert those UTF-8 strings into UTF-16
> strings.  In practice, the original input (the macrofied URL
> "$ORIGIN/foo%20bar") should have been a valid macrofied URL, which
> implies that it should only contain ASCII characters, which in turn
> implies that the escaped macrofied URL should only contain escape
> sequences %00--%7F.  That simplifies matters:  You can individually
> de-escape such an escape sequence in the range %00--%7F into a single
> Basic (UTF-16) character by building a Basic integer value from the two
> hex digits and using $chr (or whatever that function is called in OOo
> Basic) to turn it into a Basic character value.

Great!! :-)
Thank you very much for the step by step explanation!
I'm thinking how to put all information you gave into a code-snippet :-)

ciao
Paolo Mantovani

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to