Hey, 2009/6/25 dyblast <[email protected]>: > Hi, > I have again a problem with encoding and charset. > I build a whois system with WT. No problem with "standard" characters > but when i request a domain on whois.jprs.jp (for example toto.co.jp) > there is a "non-standard" characters. If i use
First, you need to know the character encoding of the response you get from whois. Then, you need to figure out how you can convert this encoding to UTF8 (Wt cannot really help you there, you are likely going to need the IBM's ICU library to convert between an arbitrary (Japanese) encoding and unicode). Then, you can call: > WString(myresultstrign,UTF8) always the same problem: the japanese > caractere don't show correctly. Moreover it screws up my <pre></pre> > formating. WString(s, UTF8), which is equivalent to WString::fromUTF8(), assumes that the origin string is UTF-8. It will result in undefined behavior if it is not. I hope this helps ? Regards, koen ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
