The class Qt::TextCodec is not encoding UTF-8 text correctly for QStrings either. Testcase attached. -------------- next part -------------- require 'Qt4' app = Qt::Application.new ARGV codec = Qt::TextCodec::codecForName 'UTF-8' bt = Qt::PushButton.new codec.toUnicode('????') bt.show app.exec