After a PHP update PHP 4.4 - PHP 5.2.4 I get a parsing error when I want to assign Joo!BB to a menu button.
Cause is the utf8 in the XML files. After changing the code into utf-8 the problem is solved.
Keep up the work for this component. I like IT
Hennepdesk
Could you tell me exactly where I'm suppose to edit the XML and is there a fix for this?
All xml files that have this
Code
xml... encoding="utf8"
xml... encoding="utf-8"
Instead of manually editing each of the 20 or so files, you can just use this command line script if you have Linux or MacOS X (If you use Windows you'll need to download one of the unix command packages from
http://www.perlmonks.org/?node_id=469461):
unzip com_joobb_0.5.9.zip
find com_joobb -type f | xargs grep encoding=\"utf8\" | cut -f1 -d':' | while read filename ; do mv $filename $filename.bak ; sed 's/encoding=\"utf8\"/encoding=\"utf-8\"/' $filename.bak > $filename ; rm -f $filename.bak ; done
zip -r com_joobb com_joobb
You should now have a file called com_joobb.zip without the XML Parsing errors!
There are other instances of utf8 for instance within sql queries, but I don't know if they should be changed. If you want to change every instance of utf8 to utf-8, the second line of the script should read:
find com_joobb -type f | xargs grep encoding=\"utf8\" | cut -f1 -d':' | while read filename ; do mv $filename $filename.bak ; sed 's/utf8/utf-8/' $filename.bak > $filename ; rm -f $filename.bak ; done
Let me know if this solves your problem. Hopefully we can get a minor release to fix this bug since it's so easy to fix!
Zak