Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openURL Not Working with Foreign Characters




On Oct 12, 2005, at 8:51 PM, 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=

Have you tried running your URL string thru URLEncoder to get it converted to a valid URL? This is the class one should likely use to insure a URL is properly escaped/encoded.


<http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html>

-Shawn _______________________________________________
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
References: 
 >openURL Not Working with Foreign Characters (From: Herb Bowie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.