mIRC Home    About    Download    Register    News    Help

Print Thread
utf-8 decode problem #197839 14/04/08 11:19 PM
Joined: Apr 2008
Posts: 43
Z
zantetsuken Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Apr 2008
Posts: 43
little problem i have came across.. not sure if anyone else has posted this .. i looked but didn't see one.

if a nickname has ascii chr's in it and the msg they send has ascii chr's in it the nickname becomes undecoded.

here is a screen shot of what i mean



jessy is the nickname and the rest is just an example string. notice the nickname becomes decoded once all the fancy ascii chr's are gone. lol hope i explained this well enough. mIRC version is 6.17 im not %100 sure but i think it did this with newer versions as well.... thanks

Re: utf-8 decode problem [Re: zantetsuken] #197843 15/04/08 01:22 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Considering the number of updates and fixes that have been put into place since 6.17, you really should confirm that this still happens with the current version (6.31).

Re: utf-8 decode problem [Re: RusselB] #197854 15/04/08 01:07 PM
Joined: Apr 2008
Posts: 43
Z
zantetsuken Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Apr 2008
Posts: 43
i just tried in the newest mirc version.. and it still does it

Re: utf-8 decode problem [Re: zantetsuken] #197859 15/04/08 04:25 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This was very recently reported here.

The problem lies in the fact that you never really know if the incoming message should indeed be unicode and generally you have to take an educated guess. This is what mIRC does intentionally, and with any guess it can occasionally be wrong.

The behaviour is currently "intentional", though it's not always right and can probably be improved. However, I would say that if the user's message contains non-unicode then mIRC is indeed correct in parsing it as ANSI-- the user should be the one to properly encode their message (you're not supposed to mix ANSI and UTF-8 anyway). The only time when mIRC is "wrong" is when the ANSI text (or UTF8 for an incoming ANSI line) is generated by your mIRC script/configuration and resides on the same line. This case should not affect the encoding of the incoming line. You can read more about that one in the post above.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: utf-8 decode problem [Re: argv0] #197862 15/04/08 05:40 PM
Joined: Apr 2008
Posts: 43
Z
zantetsuken Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Apr 2008
Posts: 43
alright thanks.. sorry i posted this kind of topic again lol