List Info

Thread: Yaz Internationalization




Yaz Internationalization
country flaguser name
Australia
2007-03-27 20:25:13

Hi All,

 

I have a question regarding the YAZ library 2.04.

 

We are currently adding Unicode support to are existing code base which is responsible for retrieving bibliographical records via Z39.50 severs using the YAZ library.

 

When we submit a query to YAZ using foreign chars it dosnt seem to be returning MBCS so converting to unicode fails.

 

Is their a flag or method in the YAZ library that needs to be set for MBCS or Unicode support?

 

Kind regards

 

Newbie.

 

extern "C" int zeus_search (void *handle, bend_search_rr *rr)

{

    CCfgPrm * pCfgPrm = 0;

    pSession->m_pCfgPrm = pCfgPrm;

      

    char * temp_query = (char*) rr->query->u.type_1->RPNStructure->u.simple->u.attributesPlusTerm->term->u.general->buf;

    wchar_t *szBuff=NULL;

 

    int lenW;

    lenW = MultiByteToWideChar(CP_UTF8, 0, temp_query, -1, NULL, NULL);

    if (lenW > 0)

    {

       szBuff=(wchar_t*)malloc(sizeof(wchar_t));

       MultiByteToWideChar(CP_UTF8, 0, temp_query, -1, szBuff, lenW);

    }

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )