[CWB] Re: Querying from Perl an Unicode corpus [SOLVED]

Alberto Simões ambs at di.uminho.pt
Thu Nov 25 15:06:02 CET 2010


Hello

On 25/11/2010 13:43, Alberto Simões wrote:
> Hello
>
> Is there any trick on getting a query in UTF8 to get through exec_query
> correctly to CWB? I am managing to query with ASCII strings, and I am
> being able to get the result characters in UTF8.
>
> But I am not being able to send the query in UTF8 to cwb.

Solved.

Use
Encode::_utf8_off($query)
before sending the query to CWB

and use
Encode::_utf8_on($line)
for each line received from CWB.

Will add a shortcut on this process to CWB::CQP::More.

Thanks
ambs


-- 
Alberto Simões


More information about the CWB mailing list