[Yazlist] Pazpar2: negotiation charset

Andrei V. Toutoukine tut at isuct.ru
Wed Dec 30 12:50:57 CET 2009


Dear me,

I don't know any true way to solve your problem, but you may want to 
insert a string

    ZOOM_options_set(zoptions, "charset", "UTF-8");

somewhere around the line 361 of the file "src/connection.c" (inside a 
function "connection_connect()") and just recompile. You may want to 
look at the session setting database implementation to see if it is 
possible to use that.

Once again all the above is just a dirty hack! You're warned!

Best regards,
Andrei.
> Hi, All,
>
> How can I make pazpar2 to set a negotiation charset when it connects to 
> a target?
>
> Before I connect using zoomsh I issue a command "set charset 'UTF-8'" 
> and the target works fine. I have in target's log:
>
> 16:05:36-29/12 zebrasrv(6) [session] Session - OK 6 tcp:::1 5721
> 16:05:36-29/12 zebrasrv(6) [log] charset 0 'UTF-8' (proper name 'UTF-8'): OK
> 16:05:36-29/12 zebrasrv(6) [request] Auth none
> 16:05:36-29/12 zebrasrv(6) [request] Init OK - ID:81 Name:ZOOM-C/YAZ 
> Version:3.0.52 e687cb7eb87c841f0d1a374174d51d30371f2d97
>
> When pazpar2 connects to the very same target:
>
> 16:12:57-29/12 zebrasrv(7) [session] Session - OK 7 tcp:::ffff:127.0.0.1 
> 5768
> 16:12:57-29/12 zebrasrv(7) [request] Auth none
> 16:12:57-29/12 zebrasrv(7) [request] Init OK - ID:81 
> Name:pazpar2/ZOOM-C/YAZ Version:1.2.3/3.0.52 
> e687cb7eb87c841f0d1a374174d51d30371f2d97
>
> there is no "charset 0 'UTF-8' (proper name 'UTF-8'): OK" ;-(
>
> I tried also to define <set name="pz:queryencoding" value="UTF-8"/> in 
> targets' config - no change.
>
> A page from which the search is issued has correct meta "Content-type".
>
> Can anyone help?
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>
>
>   





More information about the Yazlist mailing list