Log in or register to post comments

EyewearCalibrationProfileManager getProfileName returning foreign text

April 26, 2018 - 8:48am #1

Vuforia SDK Version: 7.1.34 -

Bug: String returned from getProfileName(profileID) is in non-english language despite Vuforia Calibration profiles all having English names.

Expected: UI Dropdown elements contain Vuforia Calibration profile names in their original language (English in this case)

Actual: names appear in wrong language.

Description: I am currently developing a VR app using Unity 2017.3.1f1, its included version of Vuforia, and the target device is the ODG R7. I added a Unity UI dropdown box that stores Vuforia Calibration profile names and upon clicking them, EyewearCalibrationProfileManager:setActiveProfile(profileID) is called for that profile's index which is analogous to its profileID. Strangely, this all works great; although the profile isn't actually applied until application restart. The only problem is that the names are displayed in what I guess is Chinese! The device language setting is in English and the only keyboard is English. Furthermore, these settings were never modified. Is this a string encoding issue? Where does the problem lie? -



Development OS (Mac OS X, Windows, Linux): Mac OS X -

Mobile OS and Version: Reticle OS -

Mobile Device Manufacturer and Model name: ODG R7 W -

 

EyewearCalibrationProfileManager getProfileName returning foreign text

May 3, 2018 - 7:25am #3
EyewearDevice thisDevice = EyewearDevice.Instance as EyewearDevice;

   ecpm = thisDevice.GetCalibrationProfileManager();

   List<string> profileNames = new List<string> (ecpm.getMaxCount());

   for (int i=0; i< ecpm.getMaxCount();i++){

    profileNames.Add(ecpm.getProfileName(i) );

    Debug.LogAssertion("Profile name "+i+": "+ecpm.getProfileName(i));

   }

   Dropdown profilePicker = GameObject.Find ("CalibProfileDropdown").GetComponent<Dropdown>();

   profilePicker.AddOptions(profileNames);//on R7: in foreign text for some reason

05-01 10:31:57.688  2823  2837 E Unity   : Profile name 1: 獕牥ㄠ

05-01 10:31:57.691  2823  2837 E Unity   : Profile name 2: 汴e

05-01 10:31:57.694  2823  2837 E Unity   : Profile name 3: 汴ㅥ

05-01 10:31:57.697  2823  2837 E Unity   : Profile name 4: 汴㍥

05-01 10:31:57.700  2823  2837 E Unity   : Profile name 5: 獣r

05-01 10:31:57.717  2823  2837 E Unity   : Profile name 6:

05-01 10:31:57.733  2823  2837 E Unity   : Profile name 7:

05-01 10:31:57.750  2823  2837 E Unity   : Profile name 8:

05-01 10:31:57.766  2823  2837 E Unity   : Profile name 9:

EyewearCalibrationProfileManager getProfileName returning foreign text

April 30, 2018 - 10:23am #2

Hello estoybueno,

Would you be able to print the value of the profile name to the console and/or check your profile name in the calibration tool? We're wondering if Vuforia is sending a corrupted string value or if the Unity UI field you are using is causing an issue.

Thanks,

Vuforia Support

Log in or register to post comments