On 11/09/09 15:40, Clément Picou (Synapse) wrote:
I've a little problem now : the string is "encoded", like in UTF8. For instance, space = %20, é=%C3%A9. And this path will always contain spaces (on Windows), and probably accented characters (if the user has accents in his user name).
com.sun.star.deployment.XPackageInformationProvider.getPackageLocation returns a URL (that will always be an absolute file URL, in OOo internal format---see the documentation of com.sun.star.uri.XExternalUriReferenceTranslator for the distinction of internal and external URIs).
If you rather need a C-style system-specific pathname corresponding to that URL (e.g., to pass it to fopen), use osl::FileBase::getSystemPathFromFileURL (from osl/file.hxx).
-Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org