<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>419670</bug_id>
          
          <creation_ts>2020-04-05 11:57:55 +0000</creation_ts>
          <short_desc>Support difference character set for query and results fro z39.50</short_desc>
          <delta_ts>2020-04-05 18:37:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>3.2.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Robby Stephenson">robby</reporter>
          <assigned_to name="Robby Stephenson">robby</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/tellico/49156ff43a682345da31e97881cfb66bb0d51f7c</cf_commitlink>
          <cf_versionfixedin>3.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1920254</commentid>
    <comment_count>0</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2020-04-05 11:57:55 +0000</bug_when>
    <thetext>From mailing list:

Some Z39.50 servers available around here seem to use different
encodings for search queries and marc entries.

For example, catalogo.bnportugal.pt which accepts latin1 for search
queries but uses ISO-5426 for database entries. In yaz-client, I am able
to interact with this server by explicitly setting these character
encodings:

    marccharset iso5426
    querycharset latin1
    open catalogo.bnportugal.pt

But in Tellico there is only one &quot;character set&quot; option, so either
non-ASCII searches don&apos;t work or non-ASCII content in the results is
garbled. Looking at the code (If I am looking in the right place -
z3950connection.cpp?), it seems it&apos;s not possible to set separate
encodings for incoming and outgoing data (m_sourceCharSet is used for
both?).

https://mail.kde.org/pipermail/tellico-users/2020-April/001502.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920341</commentid>
    <comment_count>1</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2020-04-05 18:37:48 +0000</bug_when>
    <thetext>Git commit 49156ff43a682345da31e97881cfb66bb0d51f7c by Robby Stephenson.
Committed on 05/04/2020 at 18:28.
Pushed by rstephenson into branch &apos;master&apos;.

Separate query character set encoding from response for z39.50 server

By default, the response is assumed to be the same as the query
if it is empty.
FIXED-IN: 3.3

M  +4    -0    ChangeLog
M  +32   -26   src/fetch/z3950connection.cpp
M  +6    -5    src/fetch/z3950connection.h
M  +51   -19   src/fetch/z3950fetcher.cpp
M  +6    -3    src/fetch/z3950fetcher.h
M  +25   -2    src/tests/z3950fetchertest.cpp
M  +1    -0    src/tests/z3950fetchertest.h

https://commits.kde.org/tellico/49156ff43a682345da31e97881cfb66bb0d51f7c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>