Shoutbox

chinese Quick Text in english version of Plus! - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: chinese Quick Text in english version of Plus! (/showthread.php?tid=60396)

chinese Quick Text in english version of Plus! by Iskalix on 06-10-2006 at 04:42 PM

Hello,

long time ago I used to add chinese Quick Text in my Plus! I just copied and pasted the ones which are in simplified chinese ressource files.
I was working well for long time, but now since few days (after I went to the me nu to add a new one), Plus! can't send them anymore correctly...
It just transform any chinese characters in "?"...
The only reason I can find is that now english version of Plus don't use anymore UTF-8 for encoding.... (if it was using it before)

I've just checked, and if I modify it in the Registry directly, then it works well...
So maybe the problem (bug ?) is when Plus! modify/add it to
Registry... it can't encode it correctly...

Any other idea ?
Thanks by advance,

Alexandre


RE: chinese Quick Text in english version of Plus! by RaceProUK on 06-10-2006 at 08:12 PM

It'll be because your Chinese fonts are somehow corrupted.
Go to Control Panel (Classic View) > Regional and Language Options > Languages, and tick all the checkboxes. When you hit Apply/OK, you may be asked for your Windows CD.

This should restore not just Chinese fonts, but also Japanese, Korean and other East Asian scripts.


RE: chinese Quick Text in english version of Plus! by CookieRevised on 06-10-2006 at 10:14 PM

quote:
Originally posted by raceprouk
It'll be because your Chinese fonts are somehow corrupted.
I thought about that too, but normally if that would have been the case, the characters would be visible as squares, not question marks.

A question mark is a typical indication that unicode is not used within the procedure, but ASCII. So Iskalix might be correct in stating that there is a bug with the writing to the registry (or even a bug right before that were unicode text is converted into ascii somehow... wrong sort of API calling?).

Also it shouldn't matter what languages or character sets you have installed. When you write in unicode to the registry, it should show up as unicode (wheiter or not the characters are properly shown doesn't matter) and not as an ansi question mark.

Iskalix gave away a big hint regarding the registry also though.

quote:
Originally posted by Iskalix
Any other idea ?
Can you state what exact version of Messenger Plus! you're using (complete version number, thus including build number)? Also, what is your Windows version and MSN Messenger version.

--------------------------

EDIT: I can confirm that this is indeed a bug in the latest build 3.63.148 (and maybe even before that). The bug indeed occurs when quicktexts are written to the registry. Somewhere along the code to write to the registry, the unicode is wrongfully converted to ascii. The same occurs when reading quicktexts from the registry btw...
RE: chinese Quick Text in english version of Plus! by RaceProUK on 06-10-2006 at 11:05 PM

Plus! links to the Unicode implementations though, so what it might be is an erroneous double-conversion, Unicode > ANSI > Unicode. If the question mark is the one in a diamond, I believe that's a Unicode symbol, as I've never seen it in an ANSI font (apart from fonts like Wingdings maybe, but that's another matter).

Iskalix, what OS are you using? Also, what language is Plus! set to?


RE: chinese Quick Text in english version of Plus! by CookieRevised on 06-10-2006 at 11:23 PM

As I said, it is a normal 7bit ascii question mark. Typical for a conversion from unicode to ansi; true unicode characters will always be converted to a question mark when you convert a string to ascii. OS doesn't matter, and Plus! language doesn't matter at all.


RE: chinese Quick Text in english version of Plus! by RaceProUK on 06-10-2006 at 11:28 PM

Cookie, you may have said it's a normal question mark, but Iskalix didn't. I wanted to make sure what type it was.


RE: chinese Quick Text in english version of Plus! by CookieRevised on 06-10-2006 at 11:56 PM

It IS a normal a 7bit ascii question mark.

How I know: experience*, common/logical sense**, reading*** and testing**** before stating something.



* Have seen this happening thousands of times.
** It simply wouldn't make any logical sense if it was the question mark inside a diamont unicode character which was written to the registry
He mentionned the registry + he tested this himself and said when he directly put the unicode in the registry the quicktext is shown correctly in a chat window.
*** If it was the question mark inside a diamont unicode character, I'm sure he would have said it was.
**** I tested this myself again to make sure. Otherwise I wouldn't confirm weither or not I had the bug in the first place

The only thing he did not said was that it will again be shown with question marks when the preference window is openend => which very much pinpoints the whereabouts of the problem: showing and storing of the quicktext from the config window.

PS:

quote:
Originally posted by raceprouk
Also, what language is Plus! set to?
quote:
Originally posted by Iskalix
The only reason I can find is that now english version of Plus don't use anymore UTF-8 for encoding.... (if it was using it before)


RE: RE: chinese Quick Text in english version of Plus! by Iskalix on 06-11-2006 at 07:49 AM

quote:
Originally posted by CookieRevised
Can you state what exact version of Messenger Plus! you're using (complete version number, thus including build number)? Also, what is your Windows version and MSN Messenger version.

Plus! : 3.63.148 - April 4th 2006
in english, even if I'm french... I choose english for avoiding mixing with chinese/japanese characters and french accents...
msn : 7.0.0816
OS : Windows 2000

and I think it's normal "?" who occurs when there is a problem of UTF-8 characters...

but now that I know the problem, I added Quick Text in chinese and japanese directly in the Registry... and don't try to Edit the menu for them in Plus!

And about the bug, it's during "writing" in Registry process, 'cause the Texts were encoded with ??? in the Registry...

Thank you for all answear and your search, if you have more question or need some tests, feel free to ask...
Iskalix
RE: chinese Quick Text in english version of Plus! by RaceProUK on 06-11-2006 at 02:57 PM

quote:
Originally posted by CookieRevised
* Have seen this happening thousands of times.
As I have seen the diamond-enclosed one. That's why I was asking.

OK, just reproduced the bug: the Preferences can (and do) accept Unicode (I used an Arabic character for my test), so it must be converted to ANSI incorrectly between the dialog and saving to the Registry.
RE: chinese Quick Text in english version of Plus! by CookieRevised on 06-11-2006 at 05:17 PM

quote:
Originally posted by raceprouk
so it must be converted to ANSI incorrectly between the dialog and saving to the Registry.
Indeed, and already stated... See my first post to this thread. Oh and it is not only right before a quicktext is saved, but also when it is read to be shown in the prefs. ;)
RE: chinese Quick Text in english version of Plus! by RaceProUK on 06-11-2006 at 06:37 PM

Is it? I thought it was only the saving that was performing the errant conversions.


RE: RE: chinese Quick Text in english version of Plus! by Iskalix on 06-11-2006 at 08:57 PM

quote:
Originally posted by raceprouk
Is it? I thought it was only the saving that was performing the errant conversions.

Just checked it too... I had a look on the preferences, and saw lot of "?" but  as I pressed Cancel button it didn't save it, so I kept them "right" in the Registry...

to CookieRevised, do I have to post a message in the Bug forum or did you inform Patchou (and other developpers if there is some) ? Or are you yourself one ?

Iskalix
RE: RE: RE: chinese Quick Text in english version of Plus! by CookieRevised on 06-12-2006 at 12:38 AM

[OFF TOPIC]

quote:
Originally posted by Iskalix
to CookieRevised, do I have to post a message in the Bug forum
I'll request this thread to be moved to there.

quote:
Originally posted by Iskalix
or did you inform Patchou
Nope, I didn't informed him yet.

Patchou does roam the forums and reads threads (but not always reply in them). If he still haven't seen this thread after the release of Plus!Live I'll give him a yell (Patchou is very busy atm with Plus!Live which will be released soonish).

quote:
Originally posted by Iskalix
(and other developpers if there is some)? Or are you yourself one ?
Patchou is the only developper.

[/OFF TOPIC]