Qt4 : disappearing non-English characters

M

Michael Young

I'm developing a flash-card application to help myself learn the Chinese
language. I'm using ruby1.8 with Qt4 on an xubuntu system.

At first, everything is rendered correctly, but after displaying a
certain number of flash cards, the non-English characters in the updated
windows
in the GUI are not rendered to the screen. For example, if there is
word, such as, "bXn", where X is a non-English character, then it is
displayed
in the GUI as "bn", i.e. the middle, non-English, character is totally
skipped.

For reference, I dump the words to a command-line terminal, and the
non-English words/characters are displayed correctly.

The problem is consistent in that for a given input flash-card database
file, the non-English characters disappear at a certain number of
flash-cards (the
flash-cards are displayed randomly, so it is not associated with
specific cards).

The larger the flash-card database, the sooner the non-English
characters disappear. The flash-card database is a simple UTF-8 plain
text file.

I'm guessing that it is a memory-related problem in Qt or the
Qt/Ruby-binding, but am unsure how to debug it.

Any suggestions would be greatly appreciated.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top