ASCII, UTF-8 or UNICODE ? [Archive] - Quintessential Forum

PDA

View Full Version : ASCII, UTF-8 or UNICODE ?


shaohao
12-25-2003, 12:24 PM
char inifile[MAX_PATH];
QCDCallbacks.Service(opGetPluginSettingsFile, inifile, MAX_PATH, 0);

Hi, Paul! Can you tell me the character encoding format in inifile", ASCII, UTF-8 or UNICODE?
Does it base on users OS?

Paul
12-27-2003, 04:15 AM
char inifile[MAX_PATH];
QCDCallbacks.Service(opGetPluginSettingsFile, inifile, MAX_PATH, 0);

Hi, Paul! Can you tell me the character encoding format in inifile", ASCII, UTF-8 or UNICODE?
Does it base on users OS?
If you set the PLUGINAPI_VERSION_WANTUTF8 in the plugin init structure then you will get UTF8 encoding on WinNT for all service ops. Otherwise (and always on Win9x) you will get native encoding (whatever the OS is).

shaohao
12-27-2003, 11:45 AM
If you set the PLUGINAPI_VERSION_WANTUTF8 in the plugin init structure then you will get UTF8 encoding on WinNT for all service ops. Otherwise (and always on Win9x) you will get native encoding (whatever the OS is).

THX Paul.
Now I use PLUGINAPI_VERSION_WANTUTF8 and use this op:
QCDCallbacks.Service(opGetPluginFolder, sztemp, MAX_PATH, 0);
en... Can you tell me the format of sztemp? Is it like "D:\Media\Quintessential Player\Plugin" or "file://D:\Media\Quintessential Player\Plugin"? I'm using WinXP with SP1 and the latest QCD dev version.