Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
SaX,, Xerces: parse() and IOException caused by wrong URI-encoding ?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Pascal Lagass?, post: 560094"] It is simple. Thanks for your answer, but unfortunately, I do not have the control over the filenames. Nevertheless, I have found the answer at: [URL="http://www.w3.org/International/O-URL-code.html"]www.w3.org/International/O-URL-code.html[/URL] where there is a java class (URLUTF8Encoder) to encode URL as UTF-8. Input: para_grisÚ.xml After UTF8-Encoding : para_gris%c3%a9.xml Snipplet: // --------------------------------------------------------- File uriFile = new File (uri); String encodedUri = uriFile.getParent() + File.separator + URLUTF8Encoder.encode(uriFile.getName()); parser.parse(encodedUri); // --------------------------------------------------------- Best regards to you all, Java Developers! /Pascal Lagassé Kösel GmbH & Co. KG - Über 400 Jahre Bücher mit System Wartenseestraße 11 87435 Kempten [URL]http://www.koeselbuch.de[/URL] mailto:plagasse@koeselbuch.de [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
SaX,, Xerces: parse() and IOException caused by wrong URI-encoding ?
Top