Re: Update on file->URI code

Graham Klyne wrote:
> ...
>             if ( !Character.isLetterOrDigit(c) && uriChars.indexOf(c) < 
> 0  )
>                 { // %-encode non-URI and other special characters
>                 String hv = ("0"+Integer.toHexString(c)) ;
>                 int    lv = hv.length() ;
>                 mapfilename.replace( i, i, "%"+hv.substring(lv-2,lv-1) ) ;
>                 i += 3 ;
>                 }
>             }
> ...

How is this supposed to work with non-ASCII characters, in particular 
with character points above 255?

Best regards, Julian

Received on Wednesday, 18 May 2005 12:16:20 UTC