bpiwowar / papercite

Bibtex plugin for wordpress
http://www.bpiwowar.net/software/papercite/
GNU General Public License v2.0
42 stars 47 forks source link

selected italicized characters being mangled #95

Open tomhenderson opened 9 years ago

tomhenderson commented 9 years ago

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

bpiwowar commented 9 years ago

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?

tomhenderson commented 9 years ago

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 commented 9 years ago

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

tomhenderson commented 9 years ago

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.

bpiwowar commented 9 years ago

Thanks for the new comments, this will help debugging.

bpiwowar commented 9 years ago

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?

tomhenderson commented 9 years ago

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.