Ja bih pokusao da kompajliram sa UNICODE podrskom i da prilikom konverzije char u wchar sa funkcijom:
Code:
int MultiByteToWideChar(
UINT CodePage, // code page
DWORD dwFlags, // character-type options
LPCSTR lpMultiByteStr, // address of string to map
int cchMultiByte, // number of characters in string
LPWSTR lpWideCharStr, // address of wide-character buffer
int cchWideChar // size of buffer
);
- navedem prvi parametar neku latinicnu/cirilicnu kodnu stranicu. Pokusaj onda insertovati sadrzaj te unicode varijable u bazu.
Code Page Description
1250 Latin 2: Eastern Europe
1251 Cyrillic
Nekada je u C-u pomagao poziv funkcije setlocale.
Sintaksa:
setlocale( LC_ALL, "French_Canada.1252" );