Hi there

I'm writing to report a problem with inputting complex Unicode in mIRC. I'm using mIRC 6.21 on XP SP2 and the problem has been reproduced by a number of other people.

mIRC of course now supports Unicode using UTF-8 and I am very thankful for that great improvement, but there is a persistent problem with inputting some Unicode characters.

Specifically, I have no problem typing in, say, Greek, but whenever I try to input polytonic Greek, the mIRC edit box will just give me question marks (replacement characters) instead. Similarly, when I press enter, these will be transmitted as question marks. The really odd thing is that this problem only appears when I input the text directly into mIRC itself - but is wholly absent when I first enter the text into a standard windows app (like Notepad) and then subsequently paste it into mIRC. In the latter case, the characters show up fine both in the edit box and in the channel window. This goes for a number of "complex" Unicode glyphs like polytonic Greek and Devanagari (Indian) - and I think I saw another poster mentioning the same problem with Korean. I am not forgetting to switch on "Display and encode" and it cannot be a font problem, as there is no problem copying and pasting the very same text that will not input directly into mIRC.

This problem is not unique to mIRC, tho. I've noticed it in at least two other programs, both rather small ones. The first is KeyNote by Trianglos Software, a great (but discontinued) note-taking program, and the second is Gloz, a small program made by a friend of mine to aid memorization tasks. Both of these display the exact same problem as the one described above. My earlier enquiries into the problem suggest that it may have something to do with the RichEdit-module that is apparently used by all these programs to handle input, but I am no programmer and cannot say for sure.

Now, the problem I've described above seems to be connected with two other problems, both of which also appear in the two other programs I've mentioned. The first concerns the Windows language bar (located in the Windows taskbar). This language bar allows you to switch between different languages, and there's a Windows option that allows you to do this using a hotkey combination. I myself use five different language layouts and switch between them using the combination CTRL+SHIFT which will step through the cycle JP > DA > EL > HE > SA and then back to JP. This usually works as a charm, with the exception of the three above-mentioned programs. In, say, mIRC when I press CTRL+SHIFT it'll switch from DA to EL, then to HE, but then go back to EL again, skipping SA, JP and DA. Then it'll just cycle between HE and EL and if I want to go any other language, I need to do it manually, using the mouse to click said language. Very weird.

What's perhaps even weirder is use of font substitution for apparently no reason at all in some cases. For instance, the word "Devanagari" is properly written with a macron (horizontal bar) above the second a and the final i (can't reproduce it here on the board). When I paste this into mIRC (or indeed any of those programs), the a-macron and the i-macron will be rendered by font substitution even though the font used supports both a-macron and i-macron. Very, very weird.

But it gets weirder still. All these bugs appear when I try to enter stuff into an mIRC channel edit box or into the Scripts editor, but they do not appear when inputting text into other mIRC edit boxes, like the Address Book or the many boxes within the mIRC Options dialogue. I'm assuming this is due to these boxes being handled by some other Windows component than the one that handles the channel and script editor edit boxes.

Anyway, this should serve as a description of the bug. As I said, it's been reproduced by others and it may well be related to the RichEdit module. Could it be solved by merely updating that - or is the problem more complex? Hope to get some feedback on this.

/Rasmus

Last edited by bwuser; 11/03/07 09:53 PM.