papercite icon indicating copy to clipboard operation
papercite copied to clipboard

selected italicized characters being mangled

Open tomhenderson opened this issue 10 years ago • 7 comments

I'm using this plugin (version 0.5.15) on a Wordpress site here: http://www.nsnam.org/overview/publications/

but we've had problems, across multiple versions of this plugin, with how our italicized characters are being rendered. This is apparent by looking at some of the entries. Any ideas what this might be? Is it some kind of bad intereraction with the wordpress theme?

Here is an example from one of the entries on the page.

ASCII (from bibtex booktitle = {11th USENIX Symposium on Networked Systems Design and Implementation (NSDI 14)}:

11th USENIX Symposium on Networked Systems Design and Implementation (NSDI 14)

In hex: 31 31 74 68 20 55 53 45 4e 49 58 20 53 79 6d 70 6f 73 69 75 6d 20 6f 6e 20 4e 65 74 77 6f 72 6b 65 64 20 53 79 73 74 65 6d 73 20 44 65 73 69 67 6e 20 61 6e 64 20 49 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 28 4e 53 44 49 20 31 34 29

is rendered as

ASCII: 11th uſenıx ſymposium on networked ſystems design and ımplementation (nſdı 14)

Hex: 31 31 74 68 20 75 c5 bf 65 6e c4 b1 78 20 c5 bf 79 6d 70 6f 73 69 75 6d 20 6f 6e 20 6e 65 74 77 6f 72 6b 65 64 20 c5 bf 79 73 74 65 6d 73 20 64 65 73 69 67 6e 20 61 6e 64 20 c4 b1 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 28 6e c5 bf 64 c4 b1 20 31 34 29

tomhenderson avatar Oct 19 '14 21:10 tomhenderson

This is quite strange... Could you send me the bibtex file you are using (either attach it, or send it to me privately) so I can check if I can reproduce the bug?

bpiwowar avatar Oct 22 '14 07:10 bpiwowar

Thank you for looking at it. That particular file can be found here: http://code.nsnam.org/ns-3-bib/raw-file/1e56a66204ad/using-ns3.bib

tomhenderson avatar Oct 22 '14 13:10 tomhenderson

I localized this problem to the OSBIB parser; when I enable PEAR parser instead, the text is rendered correctly.

tomhenderson avatar Jan 06 '15 14:01 tomhenderson

Also, with OSBIB parser, if I disable the "Process titles" option, the problem goes away, so the problem appears to be in the lowercasing of titles.

tomhenderson avatar Jan 06 '15 15:01 tomhenderson

Thanks for the new comments, this will help debugging.

bpiwowar avatar Jan 08 '15 08:01 bpiwowar

After some further testing, it seems that for whatever reason, you don't have multibyte function defined - which is strange since there are fallbacks in wordpress code. Could you tell me what wordpress and PHP version you are using?

bpiwowar avatar Jan 12 '15 13:01 bpiwowar

wordpress 4.1, PHP 5.5.6. This is a new server since I last reported this issue, but I just enabled "Process Titles" checkbox again on this new server and the problem reappeared.

tomhenderson avatar Jan 13 '15 03:01 tomhenderson