From: Umberto N. <umb...@gm...> - 2011-07-04 16:59:14
|
I would rather say the issue is with java because all java strings are utf16. Dunno why swig doesn't provide standard wrappers. /Umberto On Monday, July 4, 2011, Mathieu Malaterre <mat...@gm...> wrote: > Umberto, > > Thanks for the code. However I still do not understand if this is an > actual swig issue ? Why can't I simply use swig to do that ? > > Thanks > > On Mon, May 30, 2011 at 2:29 PM, Umberto Nicoletti > <umb...@gm...> wrote: >> Take a look at the mappings used by the mapserver project in: >> https://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/java/javamodule.i >> >> starting from line 44. >> HTH, >> Umberto >> On Mon, May 30, 2011 at 2:11 PM, Mathieu Malaterre >> <mat...@gm...> wrote: >>> >>> Hi there, >>> >>> I am wrapping a C library which basically fopen a file and so some >>> stuff. I could not figure out how to convert the java string given by >>> FileUtil.toFile(fo).getPath() into a proper local 8bits representation >>> (const char * expected by fopen). >>> >>> Does anyone has something already implemented ? >>> >>> Thanks >>> -- >>> Mathieu >>> >>> >>> ------------------------------------------------------------------------------ >>> vRanger cuts backup time in half-while increasing security. >>> With the market-leading solution for virtual backup and recovery, >>> you get blazing-fast, flexible, and affordable data protection. >>> Download your free trial now. >>> http://p.sf.net/sfu/quest-d2dcopy1 >>> _______________________________________________ >>> Swig-user mailing list >>> Swi...@li... >>> https://lists.sourceforge.net/lists/listinfo/swig-user >> >> > > > > -- > Mathieu > |