From: Hungerburg 13 <pc...@my...> - 2020-11-26 08:35:14
|
David, All, One more observation, that might be of interest: The /locale/ that the exist-db process runs with makes a difference Here the java code of "awkward.java": > import java.net.*; > class awkward { > static String str = "tit[ё]tat"; > public static void main(String[] args) throws Exception { > URI uri = new URI("http", "host", "/"+str, null); > System.out.println(uri.normalize().toString()); > System.out.println(uri.normalize().getRawPath()); > } > } Output changes when run in an 8-bit locale: > $ javac awkward.java > $ > $ java awkward > http://host/tit%5Bё%5Dtat > /tit%5Bё%5Dtat > $ > $ LANG=C java awkward > http://host/tit%5B?%5Dtat > /tit%5B?%5Dtat There is now the ominous question mark that David sees! I guess it just says, that the character cannot be represented in the chosen encoding. No exception thrown, impossible to say, where the substitution occurs. Peter |