I have a web service where I have to use a URL with percent-encoded (URL 
encoded) special characters – German Umlauts – but not using UTF8 but 
ISO-8859-1. I have been given the following table for the „correct“ encodings: 
http://www.degraeve.com/reference/urlencoding.php

I found out that I can use the following to get the encoding I need (%FC):
ZnPercentEncoder new
        characterEncoder: (ZnCharacterEncoder newForEncoding: 'iso-8859-1');
        encode: 'ü'.

However, when I try to use the encoded URL with ZnClient
ZnClient new
        url: 'http://example.com/%FC';
        get.

I get a ZnUTF8Encoder>>errorIllegalLeadingByte (Illegal leading byte for utf-8 
encoding).

Any help is greatly appreciated.

Cheers,
Bernhard




Reply via email to