Bug 14372

Summary: Error font in Koha Vietnamese
Product: Koha Reporter: hienpn <hien.pham>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: normal    
Priority: P3 CC: gmcharlt, jonathan.druart, katrin.fischer, kyle.m.hall
Version: 3.18   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Font error image

Description hienpn 2015-06-10 05:04:26 UTC
Created attachment 40058 [details]
Font error image

While I renew items on Koha, the font error occurred in renewal. Please check help me this error
Comment 1 Jonathan Druart 2015-07-15 07:31:18 UTC
Which version of Koha? 3.18?
Did you try 3.20?
The problem only occurs on 1 page?
Comment 2 hienpn 2015-07-15 08:12:55 UTC
Hi Jonathan Druart

I use Koha 3.18.04.

When I use Koha 3.16.01, the font error occurred in renewal but I can fix error by edit file Database.pm. With koha 3.18.04 I can't fix error.

With Koha 3.20 Beta, this error was fix. I see this error often occurs when database call from mysql.

Thank!
Comment 3 Katrin Fischer 2015-07-15 10:25:01 UTC
Do you mean it's working in 3.20 and 3.16, but not in 3.18?
What did you change on Database.pm?
Comment 4 hienpn 2015-07-15 10:48:55 UTC
I changes line 57-59 of file Database.pm in folder /usr/share/koha/lib/koha to fix error font in koha 3.16.01:

From:
my $db_opts = ($db_driver eq 'mysql') ? { mysql_enable_utf8 => 1 } :
              ($db_driver eq 'Pg')    ? { pg_enable_utf8    => 1 } :
                                            { };
To:
my $db_opts = ($db_driver eq 'Pg')    ? { pg_enable_utf8    => 1 } :
                                            { };
However with Koha 3.18.04 can not fix this by
Comment 5 Jonathan Druart 2015-07-15 12:12:39 UTC
You should try and use the 3.20 version, especially if it fixes your issue.
A big work (bug 11944) to simplify and fix encoding issues has been done in this last version.

Encoding issues in previous versions will certainly not be fixed.