Miranda IM

Results 1 to 3 of 3

Thread: utf8

  1. #1
    Join Date
    December 2011


    Hi everyone
    I have another silly question. In my module i receive text from my server with utf8 coding. But when i put this text in my window i see symbol for each byte. How i can make this a "real" utf8 text ?
    i found this example but its looks too "havy"

    char buf[10240];
    TCHAR tbuf[10240];
    make_unicode_string_static(translateUtfStatic(MYTEXT, buf, SIZEOF(buf)), tbuf, SIZEOF(buf))
    Thank you

  2. #2
    Join Date
    June 2005
    What do you mean by real utf?
    To display text in a window, you need to convert to utf16 (TCHAR), and then show.
    To decode utf8 call mir_utf8decodeT and do not forget to call mir_getUTFI in the Load.
    Last edited by borkra; 3 Jan 2012 at 5:30 PM.

  3. #3
    Join Date
    December 2011
    thank you borka
    that is exactly what i need

Similar Threads

  1. no UTF8 in single chat window!
    By ragesoft in forum Technical Support
    Replies: 1
    Last Post: 2 Nov 2010, 1:01 PM
  2. Ansi->utf8
    By jazzo in forum Technical Support
    Replies: 3
    Last Post: 13 Feb 2010, 2:06 AM
  3. IRC protocol with UTF8 support
    By lamdacore in forum Protocols
    Replies: 40
    Last Post: 29 Dec 2007, 3:03 PM
  4. Utf8
    By ooples in forum Technical Support
    Replies: 1
    Last Post: 5 Sep 2007, 9:18 PM
  5. (Mbot?) script for IRC-UTF8 characters ?
    By 4l-c0n1o in forum Plugins
    Replies: 0
    Last Post: 9 Sep 2006, 9:40 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts