I have just upgraded my site from 4.6.8 to 4.7.4 - apparently successfully.

Most of the content on my site is organised in books, and when I look at the list of chapters within a node of a book, I can see that right and left quotes which should look like this:

Companies debate ‘workers’ control’

now look like this:

Companies debate ‘workers’ control’

However, when I actually click on the title and look at the node itself, the title displays correctly.

At the bottom of the node (chapter) however, I see two oddities in the "previous/next" links:

  • The apostrophes appear incorrectly (although ok in the title)
  • The article points to itself (this only seems to happen for articles that have "strange" characters).

I am very worried about this because what is a nuisance in an English site will be catastrophic in any language with accents.

This problem seems to be related to an issue in the 'Views' module, which does the same thing. I have made a query to the forum here - but if this is a bug in the book module I would welcome some advice - and a fix would be even better!

Comments

andrewfn’s picture

The issue here almost certainly relates to the encoding of the text. It looks like it is UTF-8 encoded in which single and double quotes are a three byte sequence. In many cases a safe alternative is to use named characters such as ‘ etc. instead, although I don't think this works in Drupal titles. The first thing you should check is that your final rendered page includes the line
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> at the top.

joel_guesclin’s picture

Thanks for your comments. Here is what I observe:

  • The UTF-8 metacoding appears at the top of the page - including the node which shows BOTH the title correctly displayed at the top, and incorrectly displayed in the link at the bottom
  • Looking at the page source (in Firefox) the characters appear in the source correctly at the top (title) and incorrectly at the bottom (page links)
  • This is going to be a MAJOR issue with accented characters, not just quotes
  • The TITLE can appear either correctly or incorrectly, depending on where it is displayed - it seems to me therefore that the issue is not with the data as such
joel_guesclin’s picture

Operating system  	Linux
Kernel version 	2.6.17.6-ts.grh.mh.i386
Machine Type 	i686
Apache version 	1.3.37 (Unix)
PHP version 	4.4.4
MySQL version 	4.1.20-standard

Sorry - forgot to put details about my system!

killes@www.drop.org’s picture

Which theme are you using?

joel_guesclin’s picture

Apologies for not replying earlier - I have just gotten back from a week's holiday. In answer to the question, I am using Bluemarine (though I have also the same result with box_grey).
We have also just upgraded sites in Portuguese and Bengali, apparently with no problems. I wonder whether the issue could be restricted to the "quotes" characters which correspond to the following HTML entities:

 &lsquo;  &rsquo;  &ldquo;  &rdquo;
pasqualle’s picture

Status: Active » Closed (won't fix)

This version is not supported. Reopen or create a new issue if the problem exist in any recent version (version equal or above Drupal 5)