u_setDataDirectory and Unicode Directory Names

View: New views
1 Messages — Rating Filter:   Alert me  

u_setDataDirectory and Unicode Directory Names

by JaceTheAce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I created a resource package, called TestPackage.dat, and have successfully loaded the package and pulled strings out of it using the following code:

    .
    .
    UErrorCode status = U_ZERO_ERROR;

    u_setDataDirectory("C:\\Sub1\\Sub2\\Sub3");

    ResourceBundle resourceBundle("TestPackage", Locale("en"), status);

    UnicodeString testString = resourceBundle.getStringEx("test", status));
    .
    .

Now that I'm implementing this in a production application I need to support data directory names containing unicode characters, but u_setDataDirectory only accepts a 'char *'. Is there a way to call u_setDataDirectory with a unicode directory name?

I've searched everywhere and can't find any documentation on this.

- Jason