Closed (fixed)
Project:
Single Page Website
Version:
7.x-2.0-beta3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2011 at 14:20 UTC
Updated:
13 Mar 2012 at 20:40 UTC
If i enter text into a new basic page, it is perfectly rendered in the normal drupal pages. When i view the single page, i get weird characters?
I attached 2 screenshots with the differents between the single page and the edit page of drupal.
Kind regards
| Comment | File | Size | Author |
|---|---|---|---|
| Screen single page | 403.58 KB | germaike mv | |
| screen in edit | 376.99 KB | germaike mv |
Comments
Comment #1
germaike mv commentedFind a solution for this problem :
Replace line 58-59 with:
Now the text is rendered as XHTML and isn't giving anymore weird characters.
Comment #2
jamiehollernWhen I try germaike mv's solution, I receive this error:
Exception: Error loading XML markup in DOMDocumentWrapper->loadMarkupXML() (line 424 of /sites/all/libraries/phpQuery/phpQuery-onefile.php).Edit: I believe this is to do with a bug in PHPQuery.
Comment #3
jamiehollernFor some reason, on line 83 of single_page_website.module if you change
return $output;to thisreturn utf8_decode($output);it seems to partially work. The function changes the variable $output from UTF-8 to ISO-8859-1, but the output should work as UTF-8.Comment #4
germaike mv commentedThis also seems to work.
Thx
Comment #5
yaremchuk commentedPlease use http://php.sfdev.com.s3.amazonaws.com/phpQuery-onefile.php.gz