Hi.
I suppose you are encoding the entire URL?
That wont work since the browser doesnt like it when you mangle the
address.
try {
System.out.println(
"This URL does not work: " +
java.net.URLEncoder.encode(
"http://www.google.se/webhp?hl=sv&btnG=Google-
sökning&meta=",
"UTF-8")
);
System.out.println(
"This one does: http://www.google.se/" +
java.net.URLEncoder.encode(
"webhp?hl=sv&btnG=Google-sökning&meta=",
"UTF-8")
);
} catch (Exception usee) {}
Dont encode the address. Only the path.
/// Isak Styf
13 okt 2005 kl. 17.55 skrev Herb Bowie:
Thanks for the suggestion, but no joy.
When I encode the urls using UTF-8, even the normal ones stop
working.
----------------
Herb Bowie
email@hidden
On Oct 13, 2005, at 2:44 AM, Geoff Levner wrote:
Did you try encoding the URL with URLEncoder?
Gff
On 13 Oct 2005, at 05:51, Herb Bowie wrote:
I am having a problem when I pass a URL with foreign characters
in it to the FileManager.openURL method.
Nothing seems to happen.
This is the URL I am using for testing:
http://www.google.se/webhp?hl=sv&btnG=Google-sökning&meta=
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden