https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39485

--- Comment #5 from David Cook <[email protected]> ---
The existing export code invokes some "interesting" functions from C4/Record.pm
and other places...

I have a Koha plugin where I export ISO MARC and the other day I found I had to
run C4::Charset::SetUTF8Flag( $marc, 1 ); on the MARC::Record object before
using MARC::Record->as_usmarc even though I was printing to a filehandle that
I'd opened using ":encoding(UTF-8)", so that was weird. Without that function
call, it wasn't exporting the text "Türkiye" correctly. I think that's just a
quirk of MARC::File::USMARC though. 

--

Anyway... this code removes the warning and all the output looks good, so I'm
going to pass it. 

In theory, "binmode STDOUT, ':encoding(UTF-8)'" should be enough to tell Perl
that we're outputting UTF-8 encoded bytes.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to