Bug 6965 - Error in citation plugins with multibyte characters in author names
Error in citation plugins with multibyte characters in author names
Status: RESOLVED FIXED
Product: OJS
Classification: Unclassified
Component: Plug-ins
2.3.7
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-01 11:24 PST by Matthew Crider
Modified: 2011-12-01 11:40 PST (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments
Patch against OJS pre-2.3.7 (5.65 KB, patch)
2011-12-01 11:38 PST, Matthew Crider
Details | Diff
Patch against OCS pre-2.3.5 (4.19 KB, patch)
2011-12-01 11:38 PST, Matthew Crider
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Crider 2011-12-01 11:24:26 PST
In the case of a multibyte character (e.g. Cyrillic) as the author's first initial, the citation format plugins will complain and return a blank.

Message: WARNING: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument

Thanks to http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=8091&p=31483#p31483 for spotting and providing a fix.

Also applies to OCS.
Comment 1 Matthew Crider 2011-12-01 11:38:00 PST
Created attachment 3686 [details]
Patch against OJS pre-2.3.7
Comment 2 Matthew Crider 2011-12-01 11:38:24 PST
Created attachment 3687 [details]
Patch against OCS pre-2.3.5
Comment 3 Matthew Crider 2011-12-01 11:40:03 PST
Fixed bug in some citation plugins that request first initial that is a multibyte character
https://github.com/pkp/ojs/commit/4383d9fd19571a3c826b21f48159078e9b418d75
Comment 4 Matthew Crider 2011-12-01 11:40:03 PST
Fixed bug in some citation plugins that request first initial that is a multibyte character
https://github.com/pkp/ojs/commit/3d1d99c1ead7cd185b91ff9d11f3f67801059182
Comment 5 Matthew Crider 2011-12-01 11:40:03 PST
Fixed bug in some citation plugins that request first initial that is a multibyte character
https://github.com/pkp/ocs/commit/5d025a231c7a4efb83ce90736e17e7d7bb5f9869
Comment 6 Matthew Crider 2011-12-01 11:40:03 PST
Fixed bug in some citation plugins that request first initial that is a multibyte character
https://github.com/pkp/ocs/commit/ebc91f74b40cb2f1d4999b8d6d99ed13a1d1532c
Comment 7 Matthew Crider 2011-12-01 11:40:51 PST
Committed to OCS/OJS stable/devel, added to patches lists. Closing.