/* This file is part of YAZ proxy
- Copyright (C) 1998-2008 Index Data
+ Copyright (C) 1998-2011 Index Data
YAZ proxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
}
}
}
+
+void Yaz_CharsetConverter::convert_term(Z_Term *q, ODR o)
+{
+ if (m_target_query_charset && m_client_query_charset)
+ {
+ m_ct = yaz_iconv_open(m_target_query_charset,
+ m_client_query_charset);
+ if (m_ct)
+ {
+ convert_type_1(q, o);
+ yaz_iconv_close(m_ct);
+ }
+ }
+}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab