List Info

Thread: YAZ Internationalization support




YAZ Internationalization support
country flaguser name
Australia
2007-03-27 19:40:15

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);

    }

 

YAZ Internationalization support
user name
2007-03-30 08:33:06
Michael Johnstone writes:
 >     CCfgPrm * pCfgPrm = 0;
 >     pSession->m_pCfgPrm = pCfgPrm;

Gezundheit!

 _/|_	
____________________________________________________________
_______
/o ) /  Mike Taylor    <mikeindexdata.com>    http://www.miketaylor.or
g.uk
)_v__/  "Can he fail, armed with his chocolate
surprise?" -- Genesis,
	 "Cinema Show"


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

[1-2]

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