Unicode Path Support#

The AR SDK supports Unicode (non-ASCII) characters in all file and directory paths on Windows, including the following:

  • Model directory paths that you set with the NvAR_Parameter_Config_ModelDir string through NvAR_SetString, or with the NVAR_MODEL_DIR environment variable.

  • DLL load paths, such as the AR SDK installation directory.

  • Log file paths.

The SDK resolves paths that contain Chinese, Japanese, Korean, accented Latin, or other non-ASCII characters, such as the following path:

C:\用户\模型\NVIDIA_AR_SDK\models

All path string parameters accept strings encoded in UTF-8 on both Windows and Linux.

Note

On Linux, the operating system handles UTF-8 paths natively. The Unicode path improvements apply mainly to Windows, where the SDK previously relied on the system ANSI code page.

Command-Line Arguments in Sample Applications#

On Windows, the AR SDK sample applications use wide-character entry points (wmain, or GetCommandLineW with CommandLineToArgvW) to receive command-line arguments. The samples convert those arguments to UTF-8 before passing them to the SDK.