Zend Studio garbled chars fix

Following my post about installing Zend Studio 5.5.1 on Ubuntu 8.10, Gyorgy posted a comment about a problem with garbled characters. I had noticed the problem myself, but only briefly, I don’t tend to work with very large files. As yet, I hadn’t gotten a chance to look into it.

I spent some time on it today. Through this I found this thread discussing a similar problem with Netbeans. User cesc posted their fix (workaround?) which others reported to work. I figured the same option might work in Zend.

After a little digging, I have found that this approach works for me. I’ve tested with a 3k+ line file, and the bug is resolved. I’m running Zend Studio 5.5.1, Ubuntu 8.10, Sun’s JRE build 1.6.0_10-b33, compiz disabled. Zend appears to work with compiz enabled, but scrolling a 3k+ line file is very slow.

I edited file /opt/ZendStudio-5.5.1/bin/ZDE at line 1543 and added this:

# Hack in this option to solve garbled text problem as per:
# http://tinyurl.com/zendchrfix
options="$options -Dsun.java2d.pmoffscreen=false"

Here’s a patch for those who like that sort of thing. Hopefully this will help others with the same issue.

12 thoughts on “Zend Studio garbled chars fix”

  1. Worked for me! Thanks!
    I did download the trial of Zend 6.0 but not even remotely close what I’m used to in 5.5, plus it costs way too much, but thats another topic…

    1. I moved to NetBeans which I really like, I’m not using Zend any more, so I haven’t tried on Ubuntu 10.04. I like the fact that it’s open source unlike Zend. I’m almost completely open source now. I think the few remaining obstacles are java and skype, that might be all… 🙂

      Please feel free to post the solution back here for other users if you do find it.

Leave a Reply

Your email address will not be published. Required fields are marked *