mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Hey All, I'm trying to use Japanese in my Quit Message.
Whenever I close the option window and open it back the Japanese will be changed to ??????.
And of course when I actually Quit, it will display ????? as well.
Can the Quit message be unicode as of 6.35?
If so, what am I doing wrong?
Thanks,

TSR

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
mIRC stores your quit msg in its mirc.ini (section [text], item "quit") which as far as I know is saved in ANSI format.

Quick suggestion to bypass this issue (maybe there's a more nifty sollution):

1) in mIRC, at tools: options: messages: "quit message" put the following command: $read(quitmsg.txt,1)
2) Open the directory where your mirc.ini is located. To get the right directory, simply type in any mIRC window: //echo -a $mircdir
3) Create a file "quitmsg.txt" in that directory. type/paste your japanese quit message in this file, and save it (make sure you save in "unicode" or "utf-8" format (maybe try both)).

smile

Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Hi Horstl,
Thanks for your reply.
Unfortunately, it doesn't work.
I tried saving the .txt as both UTF-8 or Unicode.
Sadly when I quit, the message is displayed: (Quit: þÿ0„0Œ0„0Œ0`0\) (it's supposed to be Japanese).
Pasting the same japanese message in a channel works just fine.
See you,

TSR

Last edited by TheShadowRunner; 30/11/08 12:10 AM.
Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Any other ideas? Anyone?
Later,

TSR

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try this.

- Change your quit message (in mIRC options) to: $myquit

- Create an alias in your mirc script remotes tab like this:

Code:

alias myquit raw quit : $+ Your unicode quit message.



Replace the text after $+ with whatever unicode message you want. The : $+ must remain though. I don't use unicode, so I don't know if the $utfencode and $utfdecode identifiers may be useful. Other unicode users may have more insight on using those identifiers.

Note: this will only affect the message that is automatically sent when you click the disconnect (lightning bolt) icon on the mIRC toolbar.

-genius_at_work

Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Hello genius_at_work,
Unfortunately it doesn't work because as soon as I close the script editor and reopen it, my unicode japanese message is tranformed into "????????".
Man it would be much simpler if the text input field for Quit message accepted unicode directly!
See you,

TSR

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I assume those characters are available in the font you're currently using, ie. they display correctly if you type them in a chat window normally?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Yes, they do display correctly when i type them in private message or in the channel.
Thanks for your support.

TSR

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
mIRC is not a unicode application, so you would need to make sure that the text is in UTF-8 format.

I followed Horstl's directions and they worked fine for me. Are you sure that the text in the quitmsg.txt file was in UTF-8 format? I created quitmsg.txt using Notepad under Windows XP and then saved using the UTF-8 encoding option.

Another method: you can paste the UTF-8 text itself into the Quit message box. This worked for me as well.

If you open a debug window by using the "/debug @debug" command, you can check whether mIRC is sending the Quit message in the correct UTF-8 format.

Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Wowoah, Khaled! The mIRC guru himself cool
Thanks a lot for your answer!
Yes, the text i'm using is in UTF-8 format.
Here is my quitmsg.txt:
http://videoff7.free.fr/quitmsg.txt
Either if i use Horstl's method, or directly paste the contents in the Quit message box, it will always appear as "??????"
Is Japanese a special case maybe?
Also, it may be worth mentionning i'm running mIRC 6.35 on a French XP SP3..
Thanks to all you guys for your support!
See you,

TSR

Edit, on my IRC > Messages page in mIRC settings, every option on the bottom is checked except "ANSI codes".

Last edited by TheShadowRunner; 03/12/08 11:36 AM.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
I can confirm that it does indeed work.

- Opened notepad and pasted chars from http://en.wikipedia.org/wiki/Japanese_writing_system

- Saved with UTF-8 encoding

- Put $read(file.txt) in the Quit Message dialog field

- Quit

Note that UTF-8 is set to display and encode in the Font menu; UTF-8 display and Font Linking are enabled in the Messages menu.

Joined: Aug 2005
Posts: 25
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2005
Posts: 25
Oh I tried again and got it working, thanks!
I used the $read(file.txt) method.
Probably i did something wrong when i first tried this method (although i'm pretty sure i tried both to save as unicode and then as utf-8)
Anyway, it works great, thanks to all!
See you,

TSR


Link Copied to Clipboard