Author | Message | Time |
---|---|---|
shadypalm88 | I've been working on retrieving a list of SC/BW games to show on my bot. For the most part it works, but when the list comes up, most names have some very strange characters in them, and when I log it with Ethereal, it doesn't even know what to make of the characters and just displays periods on the text side of the dump. So I'm guessing that they're UTF-8 encoded. I'm also guessing that I'd need to use WideCharToMultiByte to read them, but since I've heard say that the UTF-8 encoding that SC/BW uses is broken, will this work? Also, the WideCharToMultiByte function asks how many characters there are in the string. Is it safe to simply give it the Len() of the string? Speaking of Len(), the bot is written in VB6, is there an easier way to do this? And if I get this working for game names, should I be doing this for chat text too? | May 16, 2004, 4:36 AM |
Stealth | Skywing wrote a pair of UTF-8 conversion routines in C++, and they were ported to VB by Camel. | May 16, 2004, 6:47 AM |
shadypalm88 | Thanks. | May 16, 2004, 3:41 PM |
Myndfyr | Something else to not do is to edit your subject to prepend something like [ANSWERED] or [RESOLVED]. We can tell whether or not the question has been answered, or at least discussed, by looking at how many repies there have been. Thanks. :) | May 16, 2004, 6:26 PM |
warz | [quote author=Myndfyre link=board=17;threadid=6823;start=0#msg60424 date=1084731969] Something else to not do is to edit your subject to prepend something like [ANSWERED] or [RESOLVED]. We can tell whether or not the question has been answered, or at least discussed, by looking at how many repies there have been. Thanks. :) [/quote] Why not? If there's an [RESOLVED] before the topic, somebody would know to look in that thread instead of the other 10 threads pertaining to the same topic for a quick answer. | May 16, 2004, 6:50 PM |
Soul Taker | [quote author=warz link=board=17;threadid=6823;start=0#msg60428 date=1084733401] [quote author=Myndfyre link=board=17;threadid=6823;start=0#msg60424 date=1084731969] Something else to not do is to edit your subject to prepend something like [ANSWERED] or [RESOLVED]. We can tell whether or not the question has been answered, or at least discussed, by looking at how many repies there have been. Thanks. :) [/quote] Why not? If there's an [RESOLVED] before the topic, somebody would know to look in that thread instead of the other 10 threads pertaining to the same topic for a quick answer. [/quote] Most threads go off-topic fast though, so it could get annoying if done en-masse, IMO. | May 16, 2004, 7:09 PM |
shadypalm88 | [quote author=Soul Taker link=board=17;threadid=6823;start=0#msg60430 date=1084734552] Most threads go off-topic fast though... [/quote]Like this one? | May 16, 2004, 8:13 PM |
Adron | [quote author=shadypalm88 link=board=17;threadid=6823;start=0#msg60440 date=1084738415] [quote author=Soul Taker link=board=17;threadid=6823;start=0#msg60430 date=1084734552] Most threads go off-topic fast though... [/quote]Like this one? [/quote] No, not really, typically they go much more off topic. This topic was still talking about the topic. | May 16, 2004, 8:31 PM |
Skywing | [quote author=Stealth link=board=17;threadid=6823;start=0#msg60368 date=1084690052] Skywing wrote a pair of UTF-8 conversion routines in C++, and they were ported to VB by Camel. [/quote] Be warned that those routines will (correctly) refuse to process redundant encodings. So you shouldn't expect to see the Starcraft color codes showing up if you use them... | May 18, 2004, 12:15 AM |
shadypalm88 | [quote author=Skywing link=board=17;threadid=6823;start=0#msg60552 date=1084839338] Be warned that those routines will (correctly) refuse to process redundant encodings. So you shouldn't expect to see the Starcraft color codes showing up if you use them... [/quote]Not sure if I completely understand "refuse to process". If I run a message with a color code through it, will it just skip the codes, or will it not process the entire message? And, is a redundant encoding just characters from one encoding inside a string using a different encoding, or what? | May 18, 2004, 12:53 AM |
tA-Kane | Back off topic again, but personally, I rather like the idea of prepending [ANSWERED] to topics that have been resolved, as long as it doesn't totally replace the topic's name (eg renaming to [RESOLVED] instead of pre- or post-pending). | May 19, 2004, 12:36 AM |