<div>The charset used in OSCAR-based protocols is often user-configurable in Miranda, I beleive - I'll check on it. In general though there are a lot of configuration options accross all protocols that could affect encoding - I think even the Yahoo proto has an option to do with utf-8 encoding. These kinds of options don't usually have an API to allow the otr plugin access, and I also don't think that's considered a polite thing for a plugin to do.
</div>
<div> </div>
<div>I'll mess around today and see if I can find a method that will handle the general case.<br> </div>
<div>Scott<br> </div>
<div><span class="gmail_quote">On 09/02/06, <b class="gmail_sendername">Ian Goldberg</b> <<a href="mailto:ian@cypherpunks.ca">ian@cypherpunks.ca</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Wed, Feb 08, 2006 at 02:30:27PM +1100, Scott Ellis wrote:<br>> I've been told it does not work when one end is gaim and one end is miranda
<br>> - i beleive i know why: gaim is all utf-8 internally, as is the otr library,<br>> and protocol plugins would need to translate this to the protocol's encoding<br>> when sending/receiving. Miranda (to put it very simply) uses utf-16
<br>> internally. At present i convert the outgoing messages to utf-8 before<br>> passing them through the OTR library, then send them. On receive I do the<br>> reverse. Perhaps I should be converting the output from the OTR library back
<br>> to utf-16 before passing the message on to the protocol plugin for sending -<br>> i will test this when i get a chance.<br><br>Could you check what the "charset" field in the OSCAR message is set to?
<br>It's possible that it's set to UCS-2BE, when it should be ASCII (all<br>OTR-encoded messages are ASCII after being encrypted and base64-ified).<br><br>But I don't have a Windows box, so I can't test this theory.  Can<br>
someone do a OSCAR protocol dump of what the Miranda OTR plugin is<br>outputting?<br><br>Thanks,<br><br>  - Ian<br></blockquote></div><br>